windows下mysql导入数据出现 unknown command \' 错误,是因为编码问题造成的,导入的时添加编码设置

mysql -uroot -p -D database --default-character=utf8 < D:/data.sql