summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-12 15:08:12 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-12 15:08:12 +0200
commitacad7b30bef8ec11f6e57ee7bfcafec4b8795e03 (patch)
treeb9abbfd7305435e49fc13d573f4929fb85b46db5 /config
parent16df1c5188d5a312ef5db7db427961597fe56ebe (diff)
downloadnextcloud-server-acad7b30bef8ec11f6e57ee7bfcafec4b8795e03.tar.gz
nextcloud-server-acad7b30bef8ec11f6e57ee7bfcafec4b8795e03.zip
Document an example wait timeout for MySQL in case the web hoster is killing the connection too early - fixes #15407
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php3
1 files changed, 2 insertions, 1 deletions
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'
),
/**