尊敬的开发者您好:
我目前在使用该改迁移工具当中,遇见了以下问题。
问题:执行迁移命令时看 default_mysql.log,default_general.log 无明显报错信息,但openGauss端并无相应的迁移表以及相应的迁移内容。
迁移环境:
vm虚拟机,mysql版本5.5.54,操作系统openEuler20.03,openguass数据库openGauss_5.0.1 轻量版,MySQL与 openGauss_5.0.1都在一台虚拟机上。
执行迁移命令时:
(venv) [jph@localhost configuration]chameleoncreatereplicaschema−−configdefault(venv)[jph@localhostconfiguration]
chameleon add_source --config default --source mysql
(venv) [jph@localhost configuration]$ chameleon init_replica --config default --source mysql
Init replica process for source mysql started.
一直卡在 Init replica process for source mysql started.这个命令。
查看 default_mysql.log 如下
查看default_general.log 如下
位于/home/jph/.pg_chameleon/configuration中的default.yml 配置如下。
override_to: boolean
override_tables:
- "*"
specify the compress properties when creating tables
compress_properties:
compresstype: 0
compress_level: 0
compress_chunk_size: 4096
compress_prealloc_chunks: 0
compress_byte_convert: false
compress_diff_convert: false
postgres destination connection
pg_conn:
host: "127.0.0.1"
port: "5432"
user: "opengauss_test"
password: "Sample@123"
database: "opengauss_database"
charset: "utf8"
sources:
mysql:
readers: 4
writers: 4
retry: 3
db_conn:
host: "127.0.0.1"
port: "3306"
user: "root"
password: "1234qwer"
charset: 'utf8'
connect_timeout: 10
schema_mappings:
test: public
limit_tables:
- delphis_mediterranea.foo
skip_tables:
- delphis_mediterranea.bar
enable_compress: No
compress_tables:
- delphis_mediterranea.foo
grant_select_to:
- usr_readonly
lock_timeout: "120s"
my_server_id: 100
replica_batch_size: 10000
replay_max_rows: 10000
batch_retention: '1 day'
copy_max_memory: "300M"
copy_mode: 'file'
out_dir: /tmp
csv_dir: /tmp
contain_columns: No
column_split: ','
sleep_loop: 1
on_error_replay: continue
on_error_read: continue
auto_maintenance: "disabled"
index_parallel_workers: 2
gtid_enable: false
type: mysql
skip_events:
insert:
- delphis_mediterranea.foo # skips inserts on delphis_mediterranea.foo
delete:
- delphis_mediterranea # skips deletes on schema delphis_mediterranea
update:
keep_existing_schema: No
再次感谢您!!!
Hey @小小的你, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Hi @小小的你,
if you want to get quick review about your issue, please contact the owner in first: @xiangxinyong ,
and then any of the maintainers: @zhongjun2
and then any of the committers: @xiangxinyong , @zhangxubo , @邦邦邦邦 , @ailoooong , @xiangrumei
if you have any question, please contact the SIG: Infra.
登录 后才可以发表评论