标签:
load data local infile ‘F:\\Data\\predict_data.txt‘ into table weibo_predict_data (id,uid,mid,time,forward_count,comment_count,like_count,content);
由于一直报错"[Err] 1300 - Invalid utf8 character string:"。导致无法运行。查阅资料:
故将代码修改为:
load data local infile ‘F:\\Data\\predict_data.txt‘ into table weibo_predict_data character set GBK (id,uid,mid,time,forward_count,comment_count,like_count,content);
即可导入成功。
标签:
原文地址:http://www.cnblogs.com/patrikathy/p/5960740.html