0
A
回答
1
您必須再次運行遷移向導,但在「數據傳輸設置」步驟中選擇「創建一個shell腳本將數據從工作臺之外複製」選項。該工作臺後生成你的shell腳本,它可能類似於此:
所有你需要把你的密碼源和目標數據庫的#!/bin/sh
# Workbench Table Data copy script
# Workbench Version: 6.3.10
#
# Execute this to copy table data from a source RDBMS to MySQL.
# Edit the options below to customize it. You will need to provide passwords, at least.
#
# Source DB: [email protected]:8000 (MySQL)
# Target DB: [email protected]:8000
# Source and target DB passwords
arg_source_password=
arg_target_password=
if [ -z "$arg_source_password" ] && [ -z "$arg_target_password" ] ; then
echo WARNING: Both source and target RDBMSes passwords are empty. You should edit this file to set them.
fi
arg_worker_count=2
# Uncomment the following options according to your needs
# Whether target tables should be truncated before copy
# arg_truncate_target=--truncate-target
# Enable debugging output
# arg_debug_output=--log-level=debug3
/home/milosz/Projects/Oracle/workbench/master/wb_run/usr/local/bin/wbcopytables \
--mysql-source="[email protected]:8000" \
--target="[email protected]:8000" \
--source-password="$arg_source_password" \
--target-password="$arg_target_password" \
--thread-count=$arg_worker_count \
$arg_truncate_target \
$arg_debug_output \
--table '`test`' '`t1`' '`test_target`' '`t1`' '`id`' '`id`' '`id`, `name`, `date`'
第一。然後更改wbcopytables
命令的最後一個參數,從- 表到- 表 - 其中並將條件添加到行尾。 注意:您可以使用運行wbcopytables
命令--help參數來查看所有選項。
畢竟你應該得到的腳本,看起來像類似於:
#<...>
# Source and target DB passwords
arg_source_password=your_sorce_password
arg_target_password=your_target_password
if [ -z "$arg_source_password" ] && [ -z "$arg_target_password" ] ; then
echo WARNING: Both source and target RDBMSes passwords are empty. You should edit this file to set them.
fi
arg_worker_count=2
# Uncomment the following options according to your needs
# Whether target tables should be truncated before copy
# arg_truncate_target=--truncate-target
# Enable debugging output
# arg_debug_output=--log-level=debug3
/home/milosz/Projects/Oracle/workbench/master/wb_run/usr/local/bin/wbcopytables \
--mysql-source="[email protected]:8000" \
--target="[email protected]:8000" \
--source-password="$arg_source_password" \
--target-password="$arg_target_password" \
--thread-count=$arg_worker_count \
$arg_truncate_target \
$arg_debug_output \
--table-where '`test`' '`t1`' '`test_target`' '`t1`' '`id`' '`id`' '`id`, `name`, `date`' '`date` >= "2017-01-02" and `date` <= "2017-01-03"'
我希望對你們有用。
相關問題
- 1. MySQL工作臺 - 遷移數據不起作用
- 2. Rails將數據遷移到mysql工作臺GUI
- 3. mysql工作臺遷移兩個不同名稱的數據庫
- 4. MySQL數據遷移
- 5. MySql到MySql數據遷移
- 6. 遷移到MYSQL數據庫的工具
- 7. 使用EnterpriseDB遷移工具將MySQL數據庫遷移到PostgreSQL
- 8. MySQL工作臺無法選擇外鍵
- 9. 使用數據庫遷移vs工作臺
- 10. Mysql大數據庫遷移
- 11. MySQL UTF8數據庫遷移
- 12. MySQL到Postgres數據遷移
- 13. 耙:數據庫遷移不工作
- 14. 複合數據庫更新/遷移不在mysql中工作
- 15. Azure數據遷移工具
- 16. MySQL數據庫遷移缺少數據
- 17. eclipse工作臺選擇
- 18. Laravel 4 - 工作臺中的一個遷移可以回退,而其他工作臺不能遷移
- 19. 數據遷移工具和模式遷移工具
- 20. Azure數據工廠數據遷移
- 21. 選擇:從傳統ASP遷移到.NET或遷移到開源平臺
- 22. Django CharField,選擇和遷移
- 23. 僅從MySQL工作臺導出數據
- 24. 插入數據 - Mysql工作臺
- 25. MySQL工作臺priveleges,數據導入
- 26. MySQL工作臺保存數據庫
- 27. .json數據到我的mysql工作臺
- 28. (mysql)數據庫遷移難度從digikam 4. *遷移到5. *
- 29. 遷移數據
- 30. 遷移數據