phpMyAdmin执行成功,但是mysql命令source导入失败: Data too long for column
2016-11-08 21:05
405 查看
如果sql文件里中文的编码是utf8,那么在sql文件加上:
set names utf8;
后面才是insert into
如果是gb2312,就用 set names gb2312;
这样用sql命令行的source命令就可以导入大容量数据了。
set names utf8;
后面才是insert into
如果是gb2312,就用 set names gb2312;
这样用sql命令行的source命令就可以导入大容量数据了。
相关文章推荐
- MySQL中导入中文字符解决方案[Data too long for column XX at row n] 分类: 数据库 2012-11-02 14:30 1286人阅读 评论(0) 收藏
- MySQL中导入中文字符解决方案[Data too long for column XX at row n]
- (转载)MySQL中导入中文字符解决方案[Data too long for column XX at row n]
- MySQL中导入中文字符解决方案[Data too long for column XX at row n]
- mysql导入备份文件(.sql)报错:Data too large for column
- Mysql 中ERROR 1406 (22001): Data too long for column 解决方法
- mysql中存中文时出现“Data too long for column”
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- Mysql 中ERROR 1406 (22001): Data too long for column 解决方法
- mysql Data too long for column ‘xxx’ at row xxx的解决方法
- mysql建表时指定编码,避免Data too long for column.....的异常
- DBD::mysql::st execute failed: Data too long for column...解决办法之一
- mysql Data too long for column " 列名" at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- MYSQL---Data too long for column 'sex' at row 1”错误处理办法
- MySQL字符集 GBK、GB2312、UTF8区别 解决 MYSQL中文乱码问题以及error 1406:data too long for column 'name' at row 1
- mysql Data too long for column ‘xxx’ at row xxx的解决方法
- MySql中插入中文数据提示Data too long for column X at row n的解决
- mysql错误:data too long for column
- Mysql 中ERROR 1406 (22001): Data too long for column