MySql Error Code: 2006

3

Good morning,

I'm using MySql Bank WorkBeanch 6.3.5, the connection is ok, but when I do a simple select on any table it gives the following error:

Error Code: 2006. MySQL server has gone away

    
asked by anonymous 16.12.2015 / 13:33

1 answer

4

The problem can be in the MySQL configuration. In the my.cnf file in Linux or my.ini in Windows look for and leave this line like this:

[Mysqld] 
max_allowed_packet = 16 M

Increasing the capacity of max_allowed_packet in my.cnf (in [mysqld]) to 8 or 16M fixes this.

    
16.12.2015 / 16:09