Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-schema-change line 8489
2017-07-04 16:54
399 查看
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
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!
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!
相关文章推荐
- Use of uninitialized value in concatenation (.) or string at test.pl line 232
- percona-toolkit之pt-online-schema-change(在线更改表结构)
- 如何利用percona-toolkit中pt-online-schema-change功能对表进行alter
- percona-toolkit 之 【pt-online-schema-change】说明
- 利用percona-toolkit中pt-online-schema-change功能对表进行online ddl
- 利用percona-toolkit中pt-online-schema-change功能对表进行online ddl
- percona-toolkit 之 【pt-online-schema-change】说明
- percona-toolkit之pt-online-schema-change在线修改表结构
- percona-toolkit系列之 pt-online-schema-change
- percona-toolkit 之 【pt-online-schema-change】说明
- Use of uninitialized value $line in chomp
- Percona Toolkit 使用(五)(pt-online-schema-change)
- starting spamd:bind:address already in use at /usr/bin/spamd line 177 [failed]。
- [mysqldumpslow 报错] Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.
- [mysqldumpslow 报错] Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.
- Warning: Unexpected character in input: '' (ASCII=21) state=1 in /usr/local/php/bin/php-cgi on line 383
- [mysqldumpslow 报错] Died at /usr/local/mysql/bin/mysqldumpslow line 161, <> chunk 236.
- Percona 工具包 pt-online-schema-change 简介
- pt-table-sync同步报错Called not_in_left in state 0 at /usr/bin/pt-table-sync line 5231【原创】
- Online DDL与pt-online-schema-change