1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Initial Fix

This commit is contained in:
Bradley Schofield 2021-08-24 16:45:09 +01:00
parent 088ccb955d
commit 071d716949
2 changed files with 4 additions and 2 deletions

View file

@ -166,7 +166,6 @@ $register->set('dbPool', function () { // Register DB connection
$dbPass = App::getEnv('_APP_DB_PASS', '');
$dbScheme = App::getEnv('_APP_DB_SCHEMA', '');
$pool = new PDOPool((new PDOConfig())
->withHost($dbHost)
->withPort($dbPort)
@ -174,6 +173,9 @@ $register->set('dbPool', function () { // Register DB connection
->withCharset('utf8mb4')
->withUsername($dbUser)
->withPassword($dbPass)
->withOptions([
PDO::ATTR_ERRMODE => App::isDevelopment() ? PDO::ERRMODE_WARNING : PDO::ERRMODE_SILENT, // If in production mode, warnings are not displayed
])
, 16);
return $pool;

View file

@ -397,7 +397,7 @@ services:
- MYSQL_DATABASE=${_APP_DB_SCHEMA}
- MYSQL_USER=${_APP_DB_USER}
- MYSQL_PASSWORD=${_APP_DB_PASS}
command: 'mysqld --innodb-flush-method=fsync --wait_timeout=86400' # add ' --query_cache_size=0' for DB tests
command: 'mysqld --innodb-flush-method=fsync' # add ' --query_cache_size=0' for DB tests
# command: mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0.bu && mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1.bu
# smtp: