MySQL server gone away
Hello ,
If your project is using many modules especially big modules, may be you will also come across this problem.
The problem was-
I was uploading my database in abc.com, then it was giving following error.
Error: got a data bigger than max_allowed_packet
While uploading database from abc.com to localhost the error was:
Error: MySQL server gone away
This problem occurs because of large binary data storage in cache_menu table and sometimes because of cache_update table also.
To overcome this problem just increase the max_allowed_packet size.
To increase max_allowed_packet s ize you must have MySQL admin username and password.
Login to MySQL as admin. (For localhost you know your username and password!)
1) Open your MySQL window and open your database (initially which is empty database).
2) Click on SQL tab (where we write SQL queries).
3) Type:
SHOW VARIABLES LIKE 'max_allowed_packet'; (This will show you current max_allowed_packet size.)
4) Type:
set global net_buffer_length=1000000; (This will set buffer size)
5) Type:
set global max_allowed_packet=1000000000; (This will set max_allowed_packet size to 1000000000 M)
6) Now upload your database zip file as usual. You will never get above mentioned errors.
Comments