Skip to content

Commit

Permalink
add ignore_copy_error_count_each_table
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjing.zwj committed Dec 29, 2016
1 parent 61fd50f commit 15c0e3b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doc/mysql2pgsql.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,16 @@ table5: select * from table_big where column1 >= '2016-08-05'
t1
t2 : select * from t2 where c1 > 138888
```
2) 执行下面的命令,同步指定的t1和t2表(注意t2表只迁移符合c1 > 138888条件的数据):

./mysql2pgsql -l tab_list.txt

2) 执行下面的命令,同步指定的t1和t2表(注意t2表只迁移符合c1 > 138888条件的数据):

./mysql2pgsql -l tab_list.txt


3) 支持按表为单位忽略迁移中发生的错误,例如忽略数据约束校验失败或编码校验失败

只需在 my.cfg 里配置 ignore_copy_error_count_each_table ,设置需要忽略的最大行。如果单张表中错误行超过这个值,数据迁移也会失败。



# mysql2pgsql工具下载链接
请详细阅读阿里云的开源项目rds_dbsync并进行编译安装 https://github.com/aliyun/rds_dbsync/blob/master/doc/design.md
请详细阅读阿里云的开源项目rds_dbsync并进行编译安装 https://github.com/aliyun/rds_dbsync/blob/master/doc/design.md

0 comments on commit 15c0e3b

Please sign in to comment.