Mad_Griffith Posted November 3, 2015 Share Posted November 3, 2015 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. Keyword not recognized. (near "ON" at position 25) SQL Query: SET FOREIGN_KEY_CHECKS = ON; MySQL message: #2006 - MySQL server has gone away Link to comment Share on other sites More sharing options...
justsomeguy Posted November 3, 2015 Share Posted November 3, 2015 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. Link to comment Share on other sites More sharing options...
Mad_Griffith Posted November 3, 2015 Author Share Posted November 3, 2015 (edited) 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 November 3, 2015 by Mad_Griffith Link to comment Share on other sites More sharing options...
Mad_Griffith Posted November 4, 2015 Author Share Posted November 4, 2015 I redownloaded the db and it imported just fine... don't know what the issue was... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now