mysql5.5.44在win10的cmd下插入中文提示Incorrect string value
2017-06-22 11:39
531 查看
要做一个小的测试数据库,由于是新安装的mysql 5.5.44,所以为了防止乱码在mysql.ini配置文件中的latin1全部改为utf-8,但是,进入数据库,使用show variables like "char%";命令使用发现是这样的
遂使用charset命令改为如下
然后建表,但是到插入数据时插入中文测试用户,却提示
好了,还是插入不了中文,于是网上搜了一堆,结果发现有个命令是set names gbk; 测试一下竟然成功了.记载一下。
遂使用charset命令改为如下
然后建表,但是到插入数据时插入中文测试用户,却提示
好了,还是插入不了中文,于是网上搜了一堆,结果发现有个命令是set names gbk; 测试一下竟然成功了.记载一下。
相关文章推荐
- Mysql插入中文时提示:ERROR 1366 (HY000): Incorrect string value: '\xE5\x8F\xB0\xE5\xBC\x8F...' fo
- 今天遇到Mysql插入数据里有中文字符出现Incorrect string value的错误
- mysql 插入中文 ERROR 1366 (HY000): Incorrect string value: '\xE7\x8E\x9E\x97' for column
- mysql 插入中文时出现ERROR 1366 (HY000): Incorrect string value: '\xC0\xEE\xCB\xC4' for column 'usern ame' at row 1
- 【问题解决】MySQL5.5 向MySQL数据库中插入汉字时,提示:Incorrect string value: '\Xe7\x8E...' for column 'XXX' at row 1
- Mysql插入数据里有中文字符出现Incorrect string value的错误
- mysql显示中文是乱码和无法插入中文error 1366 incorrect string value
- mysql 中插入中文出现的 Incorrect string value: '\xE5\xA5\xBD\xE5\xAE\xB6...' from column错误
- 解决mysql不能插入中文 Incorrect string value (php安装程序)
- Mysql 插入中文错误:Incorrect string value: '\xE7\xA8\x8B\xE5\xBA\x8F...' for column 'course' at row 1
- mysql插入中文时报错:incorrect string value
- mysql中文插入数据异常:incorrect string value
- Error Code: 1366. Incorrect string value: '\xE4\xBA\xA7\xE5\x93\x81...' for column (mysql插入中文)
- 解决Mysql插入中文乱码问题:Incorrect string value: ‘\xA8D\xA8D\xBA\xE1…’ for column
- mysql insert中文乱码无法插入ERROR 1366 (HY000): Incorrect string value: \'\\xB1\\
- 今天遇到Mysql 插入数据里有中文字符出现 Incorrect string value 的错误
- Ubuntu下Mysql 5.7中文插入失败的问题,Incorrect string value
- MYSQL写入数据时报错ERROR 1366 (HY000): Incorrect string value: '\xE8\x8B\xB1\xE5\xAF\xB8...' for c 插入中文不能插入
- 通俗易懂地解决中文乱码问题(2) --- 分析解决Mysql插入移动端表情符报错 ‘incorrect string value: '\xF0...
- 【转】Mysql 插入中文错误:Incorrect string value: '\xE7\xA8\x8B\xE5\xBA\x8F...' for column 'course' at row 1