Skip to content

Commit

Permalink
removed max_allowed_packet
Browse files Browse the repository at this point in the history
Not all db users can execute this command
  • Loading branch information
xrowdominik committed Sep 29, 2017
1 parent e6c8bf4 commit 5897309
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cronjobs/convert_media.php
Expand Up @@ -502,7 +502,6 @@ function DBKeepalive( $connection = "doctrine.dbal.default_connection" ){
$db->close();
$db->connect();
#set variables for pretending 'mysql server has gone away'
$db->query("SET GLOBAL max_allowed_packet = 167772160;");
$db->query("SET SESSION wait_timeout=86400;");
$db->query("SET SESSION interactive_timeout=86400;");
}

0 comments on commit 5897309

Please sign in to comment.