Mysqlworkbench 5.7.34 中的未知文件编码

问题描述 投票:0回答:3

MySQL:5.7, 工作台:5.7.34

我想导入sql转储文件,问题是:

Unknown File Encoding

The file '/xxx.sql' is not UTF-8 encoded.

Please select the encoding of the file and press OK for Workbench to convert and open it.
Note that as Workbench works with UTF-8 text, if you save back to the original file,
its contents will be replaced with the converted data.

WARNING: If your file contains binary data, it may become corrupted.

Click "Run SQL Script..." to execute the file without opening for editing.

Character Set Encoding Name: latin1

img:enter image description here。 使用此 latin1 编码导入后,网站内容将更改为错误的编码格式。样本 : イă▪™ă▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪

如何在没有编码警报的情况下导入转储文件?

mysql workbench
3个回答
1
投票
选择选项“utf8”。这对我有用。


0
投票
感谢我的前辈。 我修好了。

导入过程:在工作台中,服务器>数据导入>导入自 自包含文件。选择导出sql转储文件。然后选择 目标数据库名称。好了,就这些了。

导入过程出错:双击sql转储文件,工作台将自动打开,会出现未知编码警报。


0
投票
选择“ucs2”然后运行脚本/单击按钮“ok”。

© www.soinside.com 2019 - 2024. All rights reserved.