解决MySQL里的ERROR 1366 Incorrect string value
2011-12-08 15:47
381 查看
用如下命令导入msql文件
mysql -u root -p <test.sql
有可能入到如下问题:
ERROR 1366 <HY000) at line 2:Incorrect string value ;'\xC4\xC4\xC0....'
主要原因是编码引起的。
我碰到这个问题的时候是因为数据库是UTF-8编码,而sql文件是保存的ANSI编码,另存为UTF8编码的文件就OK了
mysql -u root -p <test.sql
有可能入到如下问题:
ERROR 1366 <HY000) at line 2:Incorrect string value ;'\xC4\xC4\xC0....'
主要原因是编码引起的。
我碰到这个问题的时候是因为数据库是UTF-8编码,而sql文件是保存的ANSI编码,另存为UTF8编码的文件就OK了
相关文章推荐
- (linux下windows下一样)mysql如何插入中文,解决插入中文报错,ERROR 1366 (HY000):Incorrect string value
- Ubuntu MySQL 输入中文时报错 ERROR 1366(HY000):Incorrect string value 解决方法
- MySQL乱码实战解决ERROR 1366 (HY000): Incorrect string value: '
- 解决MySQL里的ERROR 1366 (HY000): Incorrect string value
- 解决MySQL里的ERROR 1366 (HY000): Incorrect string value
- 解决MySQL里的ERROR 1366 (HY000): Incorrect string value
- 解决MySql 报错:ERROR 1366 (HY000): Incorrect string value....
- MySQL表中存Emoji报错Error 1366: Incorrect string value的解决方法
- mysql 插入中文时出现ERROR 1366 (HY000): Incorrect string value: '\xC0\xEE\xCB\xC4' for column 'usern ame' at row 1
- mysql insert中文乱码无法插入ERROR 1366 (HY000): Incorrect string value: \'\\xB1\\
- mysql 错误 SQL Error: 1366: Incorrect string value: "\xE8\xAF\xA6\xE7\xBB\x86…" for column "address" a
- 如何解决MySQL中输入中文报错的情况1366 (HY000): Incorrect string value
- mysql显示中文是乱码和无法插入中文error 1366 incorrect string value
- 关闭 mysql 错误 SQL Error: 1366: Incorrect string value: "\xE8\xAF\xA6\xE7\xBB\x86…" for column "addres
- mysql 错误 SQL Error: 1366: Incorrect string value: "\xE8\xAF\xA6\xE7\xBB\x86…" for column "address"
- MySQL 更新中文列:1366 Incorrect string value 问题解决
- 解决pymysql.err.InternalError: (1366, "Incorrect string value: '\\xF0\\x9F\\x8C\\xB8' for column 'head...
- MySQL中出现编码错误问题:ERROR 1366 (HY000): Incorrect string value:
- MySQL 更新中国列:1366 Incorrect string value 问题解决了
- MySQL:1366 - Incorrect string value错误解决办法