1. 問題:
- 導(dǎo)入 excel 表格至 MySQL 數(shù)據(jù)庫時,會遇到因 excel 格式問題導(dǎo)致的數(shù)據(jù)報錯報錯;
-- 例如:在使用 workbench 導(dǎo)入 excel 時,提示 Table Data Import 錯誤
Table Data Import
Can't analyze file. Please try to change encoding type. If that doesn't help, maybe the file is not: csv, or the file is empty.
2. 解決:
- 將 excel保存為 .csv格式;
- 使用 記事本 打開 .csv 文件;
- 使用文件另存為再次保存文件,在編碼選擇框選擇 uhf-8;
- 全部步驟完成。