场景
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