is modified, import the backed up SQL file again, and everything is OK.
If it is still unresolved, I have sorted out some MySQL queries to encounter the MySQL server has gone away problem
To find your MySQL directory my.ini configuration file, add the following code:
Max_al lowed_packet=500m
wait_timeout=288000
Interactive_timeout = 288000
Change the value of the situation myself, I directly change the number, and finally remember to restart your My SQL Services
This is a good solution to the MySQL server has gone away problem. Max_allowed_packet is MySQL allows the largest packet, that is, the request you send, Wait_timeout is the longest waiting time, this value can be customized, but if the time is too short, after the timeout will be the MySQL server has gone Away #2006错误. The function of the Max_allowed_packet parameter is to control the maximum length of its communication buffer
If you do not modify the MYQL permissions we can in the PHP program, if php.ini modified not convenient, you can try to solve the following code.
Ini_set (' Mysql.connect_timeout ', 300);
Ini_set (' default_socket_timeout '),
After Ini_set, you can use Ini_get to verify that the parameter settings are appropriate for your expectations.