解决命令行导入sql 提示 datat to long for column 加上 设置字符集参数 --default-character-set=XXX 就行比如 mysql -uroot -proot test --default-character-set=utf8 < x:\x.sql