解决在MySQL中插入中文出现"Incorrect string value"的问题
2017-07-03 21:38
926 查看
在向MySQL中插入中文时,出现了"Incorrect string value: '\xE9\xB2\x81'"的错误,明显是MySQL编码上出现的问题。
首先尝试修改当前表的编码格式为UTF-8,如图所示:
但是依然报错,想一想还是通过转储检查创建表的SQL语句来看寻找一下问题所在吧,如图:
果然,在"first"与"last"列使用的依然是默认的Latin1编码格式,将这两处设置删除,重新创建表,问题解决~~
首先尝试修改当前表的编码格式为UTF-8,如图所示:
但是依然报错,想一想还是通过转储检查创建表的SQL语句来看寻找一下问题所在吧,如图:
果然,在"first"与"last"列使用的依然是默认的Latin1编码格式,将这两处设置删除,重新创建表,问题解决~~
相关文章推荐
- 解决在MySQL中插入中文出现"Incorrect string value"的问题
- mysql插入中文出现错误:incorrect string value:'\xD5\xC5\xC8\xFD\xB7\xE1'的解决办法
- 解决mysql插入数据时出现Incorrect string value: '\xF0\x9F...' for column 'name' at row 1的异常 这个问题,原因是UTF-8编码有可
- 解决java插入mysql时出现java.sql.SQLException: Incorrect string value: '\xF0...'问题
- MySQL数据库 查询表数据出现中文乱码 及 插入中文报错Incorrect string value问题解决方法
- 通俗易懂地解决中文乱码问题(2) --- 分析解决Mysql插入移动端表情符报错 ‘incorrect string value: '\xF0...
- 解决Mysql插入中文乱码问题:Incorrect string value: ‘\xA8D\xA8D\xBA\xE1…’ for column
- 【Mysql】解决插入数据出现 Incorrect string value: '\xF0\x9F\x92\x8BTi...'错误
- mysql 中插入中文出现的 Incorrect string value: '\xE5\xA5\xBD\xE5\xAE\xB6...' from column错误
- php 解决MySQL插入数据出现 Incorrect string value: '\xF0\x9F\x92\x8BTi...'错误
- 今天遇到Mysql插入数据里有中文字符出现Incorrect string value的错误
- 解决mysql插入数据时出现Incorrect string value: '\xF0\x9F...' for column 'name' at row 1的异常
- 解决mysql不能插入中文 Incorrect string value (php安装程序)
- 解决Mysql中文乱码以及Incorrect string value的问题
- 完美解决某些字符插入到mysql数据库出现incorrect string value的问题
- 解决mysql插入数据时出现Incorrect string value: '\xF0\x9F...' for column 'name' at row 1的异常
- Ubuntu下Mysql 5.7中文插入失败的问题,Incorrect string value
- 【问题解决】MySQL5.5 向MySQL数据库中插入汉字时,提示:Incorrect string value: '\Xe7\x8E...' for column 'XXX' at row 1
- (linux下windows下一样)mysql如何插入中文,解决插入中文报错,ERROR 1366 (HY000):Incorrect string value
- MySql系列:中文写入数据库出现错误java.sql.SQLException: Incorrect string value: '\xE5\xxxx' for column 'xxxx' at row 1及其解决方法