--- sql_db.cpp.orig 2018-11-07 22:12:55.921585849 +0100 +++ sql_db.cpp 2018-11-07 22:13:15.996507195 +0100 @@ -734,7 +734,7 @@ } sql_disable_next_attempt_if_error = 1; sql_noerror = !mainInit; - if(this->query("SET GLOBAL max_allowed_packet=1024*1024*100") && + if(this->query("SET GLOBAL max_allowed_packet=1024*1024*1024") && this->query("show variables like 'max_allowed_packet'")) { sql_disable_next_attempt_if_error = 0; sql_noerror = 0;