Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-sch...

本文介绍使用pt-online-schema-change工具在线修改表结构时遇到的问题及解决方案。问题表现为工具运行过程中控制台没有输出信息。通过检查源代码定位到连接参数中的端口未正确设置,移除无效端口配置后问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. problem description:

   as the title show, i miss the first problem using pt-online-schema-change tool to modify the table online.

   no more message print in the console .

 

2. sulution:

   see the line 8489 of the file 'pt-online-schema-change', you will see code

printf("%s -> %s:%s\n", $cxn->name(), $cxn->{dsn}->{h}, $cxn->{dsn}->{P});

  copy and annotation,

one by one , test name(), {dsn}, {dsn}->{h}, {dsn}->{P},

you will find that  $cxn->{dsn}->{P} is null.

take it away and try again, you will success!

 

转载于:https://www.cnblogs.com/rocky-fang/p/7117421.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值