From 91e73328b86abbd1a4e806232ee840489338237c Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 12 Apr 2016 15:10:39 +0200 Subject: Document an example wait timeout for MySQL in case the web hoster is killing the connection too early - fixes #15407 This reverts commit e9a9af3493caa7e839e18cda0c8ea2d8dd7bfd22. --- config/config.sample.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.sample.php b/config/config.sample.php index 6005352e9d5..d1ad1cd38d7 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1010,10 +1010,11 @@ $CONFIG = array( /** * Additional driver options for the database connection, eg. to enable SSL - * encryption in MySQL. + * encryption in MySQL or specify a custom wait timeout on a cheap hoster. */ 'dbdriveroptions' => array( PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem', + PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800' ), /** -- cgit v1.2.3