HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //usr/share/mysql-test/r/alter_table_online.result
drop table if exists t1,t2,t3;
create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
alter online table t1 modify b int default 5;
alter online table t1 change b new_name int;
alter online table t1 modify e enum('a','b','c');
alter online table t1 comment "new comment";
alter online table t1 rename to t2;
alter online table t2 rename to t1;
drop table t1;
create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
alter online table t1 modify b int default 5;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 change b new_name int;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify e enum('a','b','c');
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 comment "new comment";
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 rename to t2;
ERROR HY000: Can't execute the given 'ALTER' command as online
drop table t1;
create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
alter online table t1 drop column b, add b int;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify b bigint;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify e enum('c','a','b');
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify c varchar(50);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify c varchar(100);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 add f int;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 engine=memory;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter table t1 engine=innodb;
alter table t1 add index (b);
alter online table t1 add index c (c);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 drop index b;
ERROR HY000: Can't execute the given 'ALTER' command as online
drop table t1;
create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
alter online table t1 drop column b, add b int;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify b bigint;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify e enum('c','a','b');
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify c varchar(50);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 modify c varchar(100);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 add f int;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 engine=memory;
ERROR HY000: Can't execute the given 'ALTER' command as online
alter table t1 engine=innodb;
alter table t1 add index (b);
alter online table t1 add index c (c);
ERROR HY000: Can't execute the given 'ALTER' command as online
alter online table t1 drop index b;
ERROR HY000: Can't execute the given 'ALTER' command as online
drop table t1;
create table t1 (a int not null primary key, b int, c varchar(80));
create table t2 (a int not null primary key, b int, c varchar(80));
create table t3 (a int not null primary key, b int, c varchar(80)) engine=merge UNION=(t1);
alter online table t3 union=(t1,t2);
drop table t1,t2,t3;