简体   繁体   中英

MySql Is There a Limit on the size of a query

I am trying to restore a MySql database I had from version 3 of MySql from backups I saved. I have installed version 5.6.17. When I try to create a table from a file that is 60+ lines long it fails with ERROR 1064 in line 22. If I delete line 22 it complains about the new line 22.

I trust the SQL file I am using because I got it from a backup of the old MySql.

Is ther a limit that can be increased to allow this table create to work?

You will see the 1064 MySQL syntax error when you incorrectly use reserved words such as when or order . These reserved words may differ for each version of MySQL. Considering you are trying to restore a db from version 3 it is likely you are getting the 1064 error due to MySQL version mismatch. You should check the version 3 sql file for conflicting reserved words that may be causing the 1064 syntax error.

Please see MySQL Reserved Words 5.6 for more information on reserved words.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM