mysql数据从windows导出,再导入到linux

从windows导出时,要注意字符集最好和linux的一致,如linux字符集一般为utf8,则导出时可以加上参数--default-character-set=utf8指定字符集,然后导入到linux后就没问题了:

mysqldump -uhkf -h192.168.3.200 -p --default-character-set=utf8 productcrawledcomments > productcrawledcomments.sql

原文地址:https://www.cnblogs.com/winstonet/p/6916175.html