首页 > 代码库 > Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-schema-change line 8489
Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-schema-change line 8489
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-schema-change line 8489
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。