Jump to content
Mad_Griffith

2006 - "MySQL server has gone away" error

Recommended Posts

Hi everybody, I am trying to import a db in myphpadmin which works fine on another server and I get the error below. Can you tell me what's wrong here? Thank you.

 

Roughly translated it s:

 

Static analysis:

1 error was found during analysis.

  1. Keyword not recognized. (near "ON" at position 25)

SQL Query:

SET FOREIGN_KEY_CHECKS = ON;

MySQL message:

#2006 - MySQL server has gone away

Share this post


Link to post
Share on other sites

That error can mean several things but it will often happen if the query packets are too large. Try breaking up your query into smaller pieces. If it's complaining about "ON" being there then use a 1 or 0 instead of on and off.

Share this post


Link to post
Share on other sites

The only occurrence of FOREIGN_KEY_CHECKS is actually:

/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;

What to do?

Edited by Mad_Griffith

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...