1. I'm doing the following:
pt-online-schema-change --execute --print --user=username --ask-pass --alter "ADD COLUMN new_column TINYINT(1) DEFAULT NULL" D=database_name,t=user
2. pt-osc creates temporary table, shows "Created new table database_name._user_new OK." and hangs.
3. After enabling PTDEBUG I saw following lines in an endless loop:
...# TableParser:3274 2253 Checking `database_name`.`_user_new`# TableParser:3278 2253 SHOW TABLES FROM `database_name` LIKE '\_user\_new'# TableParser:3288 2253 Table does not exist...
4. But mysql actually finds this table:
mysql> SHOW TABLES FROM `database_name` LIKE '\_user\_new' -> ;+---------------------------------------+| Tables_in_database_name (\_user\_new) |+---------------------------------------+| _user_new |+---------------------------------------+1 row in set (0.03 sec)
5. How could this happen? Any ideas?
pt-online-schema-change --execute --print --user=username --ask-pass --alter "ADD COLUMN new_column TINYINT(1) DEFAULT NULL" D=database_name,t=user
2. pt-osc creates temporary table, shows "Created new table database_name._user_new OK." and hangs.
3. After enabling PTDEBUG I saw following lines in an endless loop:
...# TableParser:3274 2253 Checking `database_name`.`_user_new`# TableParser:3278 2253 SHOW TABLES FROM `database_name` LIKE '\_user\_new'# TableParser:3288 2253 Table does not exist...
4. But mysql actually finds this table:
mysql> SHOW TABLES FROM `database_name` LIKE '\_user\_new' -> ;+---------------------------------------+| Tables_in_database_name (\_user\_new) |+---------------------------------------+| _user_new |+---------------------------------------+1 row in set (0.03 sec)
5. How could this happen? Any ideas?
Comment