資料轉換
General Settings for Data Transfer
一.一般設定
下列指示將引導您完成的過程中建立一個資料轉換。請根據您的需要自訂選項。 (見拖放drag and drop)
Source
資料來源
預設選中所有的資料庫物件。如果您不想要資料轉換,取消勾選。
所有勾選的資料庫將被資料轉換。但是,如果您在建立了轉換檔後再新增資料庫,新的資料庫將不會被轉換,除非您重新手動修改目標檔案。
如果你希望所有的物體被轉移到目標資料庫,包括所有新增加的對象,而不用重新修改目標檔案。請選擇此選項,
Target
目標
Transfer directly to server
勾選此項,直接將資料轉入其他資料庫。
Transfer to file
勾選此項,資料轉入檔案
Setting
Advanced Data Transfer Properties
二.進階設定
General Options
一般選項
Log to file:(記錄檔)
在資料轉換過程中,記錄每個錯誤的詳細資料(標示成功或錯誤)。
注意:每次資料轉換,此文檔都會被覆蓋寫入。
相關話題:
記錄檔(Log Files)
Continue on errors(錯誤時繼續)
勾選此項,轉換時忽略遇到的錯誤。
Drop tables before create(產生表之前先刪除)
勾選此項,轉換時如遇已經存在同名資料庫/表,先刪除舊資料庫/表,再建立新的資料庫/表。
Create database if not exist(不存在時建立)
只有指定的資料庫/表未存在時,才會建立。
Server Options
服務選項
Lock tables before read(讀表之前鎖定)
在資料轉換過程中,讀表之前先鎖定來源資料庫所有表,在此資料轉換操作結束之前,任何update操作不允許。
Flush log files before starting Data Transfer (資料轉換前刪掉記錄檔)
資料轉換之前在轉換源端運行FLUSH LOGS文法
您可以參考:Flush
Table
Options
表選項
Create tables(建立表)
Creates tables in the target database with this option is on.
勾選此選項,將在目標資料庫建立表。
假如此選項未被勾選,而目標資料庫又存在此表,那麼所有記錄會附加到目標資料庫表中。
Use DDL from SHOW CREATE TABLE
If this option is on, DDL will be used from show create table.
Create indexes(建立索引)
勾選此選項,將在目標資料庫表建立索引。
Include foreign keys(包含外鍵)
勾選此選項,外鍵資訊也被轉換輸出。
Include engine/table type(包含引擎類型)
Includes table type with this option is on.
勾選此選項,引擎類型資訊也被轉換輸出。
Include character set(包含字元集設定)
勾選此選項,字元集設定資訊也被轉換輸出。
Include auto increment(包含自動增量)
Includes auto increment in the table with this option is on.
勾選此選項,自動增量資訊也被轉換輸出。
Create triggers(包含觸發器資訊)
Creates triggers in the target database with this option is on.
勾選此選項,觸發器也被轉換輸出。
Create records(包含所有記錄)
Check this option if you require all records to be transferred to the
destination database.
勾選此選項,所有記錄也被轉換輸出至目標資料庫。
Use complete insert statements(使用完整的insert文法)
Inserts records using complete insert syntax.
勾選此選項,插入資料時採用使用完整的insert文法。如:
INSERT INTO 'users' ('ID Number', 'User Name', 'User Age') VALUES ('1', 'Peter
McKindsy', '23');
INSERT INTO 'users' ('ID Number', 'User Name', 'User Age') VALUES ('2',
'Johnson Ryne', '56');
INSERT INTO 'users' ('ID Number', 'User Name', 'User Age') VALUES ('0',
'katherine', '23');
Use extended insert statements(使用延伸的insert文法)
勾選此選項,插入資料時採用使用延伸的insert文法。如:
INSERT INTO 'users' VALUES ('1', 'Peter McKindsy', '23'), ('2', 'Johnson Ryne',
'56'), ('0', 'Katherine', '23');
Use delayed insert(延時插入)
勾選此選項,插入資料時採用使用延時插入的insert文法。如:
INSERT DELAYED INTO 'users' VALUES ('1', 'Peter McKindsy', '23');
INSERT DELAYED INTO 'users' VALUES ('2', 'Johnson Ryne', '56');
INSERT DELAYED INTO 'users' VALUES ('0', 'katherine', '23');
Add locks when inserting records(資料插入表前鎖定)
資料插入表前鎖定目標資料庫。
Use hexadecimal format for BLOB
Inserts BLOB data as hexadecimal format.
Message
Log
日誌資訊
The Message Log tab
allows you to view the running process indicating success or failure. The
messages can be saved
as text file.
日誌信心標籤允許您查看資料轉換過程中成功或失敗的標示。
此資訊可儲存至文字文件。
參考:http://www.navicat.com/win_manual/index.html