Question:
-
connection:
- root connection和一般connection的區別?
- what does host mean? how to configure host? what is port 3306 used for?
-
字符集與校對規則:
- 用處?
- table可以設置不同於schema的字符集和規則?
Step: 參考 https://blog.csdn.net/u014551745/article/details/83147790
-
創建新的root以外的連接connection
-
創建數據庫Schema:
- 設置字符集和校對規則: utf8, utf8-bin for Chinese
- CREATE SCHEMA `edge` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ;
- online DDL configuration: default
- 設置字符集和校對規則: utf8, utf8-bin for Chinese
-
創建數據表Table:
-
engine?
- 表頭數量極多,如何創建和設置類型:導入一個行數較少的表,設置表頭
-
-
導入數據表
-
table import wizard...
- (數據量適中時)可用notepad轉化爲utf-8格式(convert to utf-8),確保保存爲csv. 否則,會報錯can't analyze the file.
- 導入設置需要與文件情況契合(如Line Separator, Field Separator),否則會導入空數據. de-defaul. 參考https://stackoverflow.com/questions/32898767/in-mysql-workbench-using-table-data-import-wizard-to-import-csv-creates-empty
- LOAD DATA LOCAL INFILES:
-
答疑與報錯處理
- 導入完成後,可能需要對Tables refresh all,纔可顯示新導入的表
- import wizard: 0 records imported, why!!?
- 換行符: https://www.jianshu.com/p/b03ad01acd69