- Sets MySQL timeout to 60 seconds
This commit is contained in:
@@ -55,7 +55,8 @@ class Initializer {
|
||||
\ORM::configure('logging', WP_DEBUG);
|
||||
\ORM::configure('driver_options', array(
|
||||
\PDO::MYSQL_ATTR_INIT_COMMAND =>
|
||||
'SET TIME_ZONE = "' . Env::$db_timezone_offset . '", ' .
|
||||
'SET SESSION wait_timeout = 60, ' .
|
||||
'TIME_ZONE = "' . Env::$db_timezone_offset . '", ' .
|
||||
'sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY",""))'
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user