Question : problem importing .sql file from MySQL 4.1.7-nt to MySQL 4.0.22-standard

Hi

I am having problem importing .sql file from MySQL 4.1.7-nt to MySQL 4.0.22-standard.
The problem is caused by this "ENGINE=MyISAM DEFAULT CHARSET=utf8;" in the .sql file.

*LOCAL LOCAL MACHINE
PHP MyAdmin 2.6.0-pl2
MySQL 4.1.7-nt  (Local MySQL version)

*ONLINE WEB SERVER
PHP MyAdmin 2.6.0-pl2
MySQL 4.0.22-standard (Online MySQL version)

*ERROR MESSAGE
#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 'DEFAULT CHARSET=utf8' at line 24

How do I get around that? Just a setting somewhere when I export the .sql file?

Thanks :)

Answer : problem importing .sql file from MySQL 4.1.7-nt to MySQL 4.0.22-standard

Add --compatible=mysql40 to your mysqldump call.
Random Solutions  
 
programming4us programming4us