Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-sch
Posted rocky-fang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-sch相关的知识,希望对你有一定的参考价值。
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!
以上是关于Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-sch的主要内容,如果未能解决你的问题,请参考以下文章
use_frameworks!遇到了library not found for -lXXXXX 的解决方法
主从同步UUID问题:found a zombie dump thread with the same UUID
Mycat SqlServer Do not have slave connection to use, use master connection instead