Mysql Workbench 8.0.29+ has bug on "Table Data Import" feature.
参考:
Mysql Workbench在编码清单中只适用第1选项,尽管你选择了其他编码(utf8, etc)。
如果“第一种选择能够打上你的剪辑,那么Mysql Workbench就会放弃例外情况。
In my situation, my first option is cp950 and my CSV file is utf-8.
Mysql Workbench throw exception and break. Even though I changed encoding to utf-8, Mysql Workbench still throw a cp950 exception.
我可以将我的特别安全等级转换为ASCII或CP950,因为我的数据不仅是ASCII/CP950的特性。
工作:
- Exit Mysql Workbench
- Open folder
C:Program FilesMySQLMySQL Workbench 8.0 CEpythonlibencodings
- Backup the first option encoding python files in your list. (In my situation first option is
cp950.py
and cp950.pyc
)
- Copy
utf_8.py
, utf_8.pyc
and rename to cp950.py
, cp950.pyc
.
- Override original
cp950.py
, cp950.pyc
in folder.
- Launches Mysql Workbench and Import again.