[add] Connecting to mysql from pdo

This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-08 05:24:02 +00:00
parent 7fc9ca8c75
commit f2237d9209
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ return [
// Datanase settings
'mysql' => [
'host' => 'localhost',
'host' => 'mysql',
'database' => 'payroll',
'user' => 'root',
'password' => '12345678',

View File

@ -12,9 +12,9 @@ services:
mysql:
container_name: payroll_mysql
restart: always
image: mysql:8.0.12
image: mysql:5.7
ports:
- "3307:3306"
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: '12345678'
MYSQL_USER: 'sloth'