Mysql Error Code: 2006

Asked

Viewed 1,262 times

3

Good morning,

I am using Mysql Workbeanch 6.3.5, the connection is ok, but when I make a simple select in any table gives the following error:

Error Code: 2006. Mysql server has Gone away

1 answer

4


The problem may be in the configuration of Mysql. In my.cnf file on Linux or my.ini on Windows search and leave this line like this:

[Mysqld] 
max_allowed_packet = 16 M

Increasing the capacity of max_allowed_packet no my.cnf (in [mysqld]) for 8 or 16M corrects this.

  • Where is this file? I’m looking and I don’t know

  • 1

    found the file, altered and worked I’m using windows so in case it’s my.ini. thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.