- 论坛徽章:
- 0
|
备份库是在linux下的mysql 5.1.42导出的,要把该库导入到windows上的mysql 5.1.41。用source命令导入库6、7个小时后,出错了(出错片断):
ERROR:
Unknown command '\n'.
ERROR:
Unknown command '\n'.
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 '','',
1,1,'360碌脛 脡垄脠脠驴脷 脤芦麓贸 \n路莽脡脠 虏禄麓贸 隆拢 \n潞脙脕鹿驴矛' at
…………
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 '\n\n
脦脪脢脟麓脫脪禄赂枚脪禄脦脼脣霉脰陋碌脛脨脗脢脰驴陋脢录 驴陋碌锚脫枚碌陆脕' a
line 1
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 '碌脠
碌陆潞脙碌脛脢卤潞貌露录虏卯虏禄露脿3碌茫掳毛脕脣  ' at line 1
ERROR:
Unknown command '\n'.
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 '\n &
bsp' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
…………
在这之前一直是warnings:0。我想问问是不是字符集问题?如何解决?(补充:备份库是utf8的,所以当前用set names设为utf8再导入库的,导入成功的数据里的中文都可以用select * from tablename;正常显示的。) |
|