MySQL报错:ERROR 1406 (22001) at line 486: Data too long for column 'COMMENTS' at row 1

场景

mysql执行sql脚本报错

mysql -uroot -p wcp <wcp.free.v4.3.0.all.sql

ERROR 1406 (22001) at line 486: Data too long for column ‘COMMENTS‘ at row 1

原因

vim制表符问题(编码问题)

解决

sql文件编码转换为ANSI编码即可

MySQL报错:ERROR 1406 (22001) at line 486: Data too long for column 'COMMENTS' at row 1

上一篇:Mysql 返回JSON值属性的函数 (五)


下一篇:Mysql delete 表别名错误