Commit a895a543 authored by Michal Čihař's avatar Michal Čihař

Set wait timeout for MySQL connections

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 04a0a411
......@@ -32,7 +32,7 @@ if 'CI_DATABASE' in os.environ:
DATABASES['default']['USER'] = 'root'
DATABASES['default']['PASSWORD'] = ''
DATABASES['default']['OPTIONS'] = {
'init_command': 'SET NAMES utf8',
'init_command': 'SET NAMES utf8, wait_timeout=28800',
}
elif os.environ['CI_DATABASE'] == 'postgresql':
DATABASES['default']['ENGINE'] = \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment