Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

localhost ERROR 2006 (HY000) at line 1163: MySQL server has gone away

1. SSH or SFTP to the Server

2. Look for my.cnf with whereis command (my.cnf can be found on linux: /etc/mysql)

4. Add the following line to my.cnf:

max_allowed_packet=64M

5. Save and close the file

6. Restart MySQL server using or Restart the Server
Source by www.xelium.co.uk #
 
PREVIOUS NEXT
Tagged: #localhost #ERROR #line #MySQL #server
ADD COMMENT
Topic
Name
3+1 =