Answer the question
In order to leave comments, you need to log in
Error while importing MySQL database, what could be the reason?
Error when importing database dump:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 96
Import is done with PhPMyAdmin
Answer the question
In order to leave comments, you need to log in
if this copy is from a working database, try copying it again and uploading it to a clean database where there are no tables from the previous transfer.
And so the message says that there is a syntax error in line 96, it is possible that MySQL versions are different.
if the backup was taken by mysqldump, then it is better to upload it through the console mysql.
usually errors come out if there is no idea about the time zone that is indicated in the dump.
PHPMyAdmin has a limit on the size of the imported file, the default is 2Mb. Try loading the tables one at a time.
If you have access to the console, then try to import via mysql# mysql -u root -p < dump.sql
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question