用mysql SOURCE命令导入SQL文件,SOURCE D:/data.sql,有一个表的数据报这个错
ERROR 1064 (42000): 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 ''<h2{#$title|escape|nbsp#}</h2>\n<span style=\"font-size: 14px;\">娆㈣繋鍙傚姞 ' at line 1然后这个表的数据倒不进去,只有一个空表。我在网上搜了一下,在后面加了这句:
--default-character-set=utf8,直接倒不了,报这个Failed to open file...
我又用navicat倒,这个却能倒,并且报错的那个表的数据也都有。
这么看来SQL文件时没有问题的,还是命令写的不对。
请教高手,用Mysql命令的话 应该怎么写。