如何更改 mysql 转储文件的编码
如何更改 mysql 转储文件的编码? 当我运行 mysqldump 命令时,它会创建以 ANSI 编码的文件。怎么改成utf-8呢?我也尝试过这样做:
mysqldump --user=user1--password=pas1 --default-character-set=utf8 mydb1 mytbl1 > e:\1.sql
How to change encoding of the mysql dump files?
When I run mysqldump command it creates file encoded in ANSI. How to change it to utf-8? I have also tried to do this:
mysqldump --user=user1--password=pas1 --default-character-set=utf8 mydb1 mytbl1 > e:\1.sql
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据此论坛帖子,罪魁祸首是
> Windows 上的 filename
重定向,这似乎在处理 UTF-8 字符时遇到问题。尝试使用
--result-file参数
代替。
According to this forum thread, the culprit is the
> filename
redirection on Windows, which seems to have trouble with UTF-8 characters.Try using the
--result-file
parameter instead.