Server IP : 172.67.216.182 / Your IP : 172.69.176.6 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/innodb/t/ |
Upload File : |
# Not supported in embedded --source include/not_embedded.inc # This test case needs InnoDB. -- source include/have_innodb.inc call mtr.add_suppression("InnoDB: Failed to find tablespace for table .* in the cache. Attempting to load the tablespace with space id"); create table t1(f1 int not null, f2 int not null, index idx(f2))engine=innodb; create table t2(f1 int not null, f2 int not null, index idx(f2))engine=innodb; insert into t1 values(1, 2); insert into t2 values(1, 2); SET GLOBAL innodb_fast_shutdown = 0; --echo # Restart the server with innodb_force_recovery as 4. let $restart_parameters = restart: --innodb-force-recovery=4; --source include/restart_mysqld.inc select * from t1; --error ER_OPEN_AS_READONLY insert into t1 values(2, 3); --error ER_INNODB_READ_ONLY alter table t1 add f3 int not null, algorithm=copy; --error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON alter table t1 add f3 int not null, algorithm=inplace; --error ER_INNODB_READ_ONLY drop index idx on t1; --error ER_OPEN_AS_READONLY update t1 set f1=3 where f2=2; --error ER_INNODB_READ_ONLY create table t3(f1 int not null)engine=innodb; --error ER_BAD_TABLE_ERROR drop table t3; --error ER_ERROR_ON_RENAME rename table t1 to t3; --error ER_OPEN_AS_READONLY truncate table t1; --error ER_CREATE_FILEGROUP_FAILED create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; drop table t1; show tables; --echo # Restart the server with innodb_force_recovery as 5. let $restart_parameters = restart: --innodb-force-recovery=5; --source include/restart_mysqld.inc select * from t2; --error ER_OPEN_AS_READONLY insert into t2 values(2, 3); --error ER_INNODB_READ_ONLY alter table t2 add f3 int not null, algorithm=copy; --error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON alter table t2 add f3 int not null, algorithm=inplace; --error ER_INNODB_READ_ONLY drop index idx on t2; --error ER_OPEN_AS_READONLY update t2 set f1=3 where f2=2; --error ER_INNODB_READ_ONLY create table t1(f1 int not null)engine=innodb; --error ER_BAD_TABLE_ERROR drop table t1; --error ER_ERROR_ON_RENAME rename table t2 to t3; --error ER_OPEN_AS_READONLY truncate table t2; --error ER_CREATE_FILEGROUP_FAILED create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; --error ER_BAD_TABLE_ERROR drop table t2; show tables; --echo # Restart the server with innodb_force_recovery as 6. let $restart_parameters = restart: --innodb-force-recovery=6; --source include/restart_mysqld.inc select * from t2; --error ER_CANT_LOCK insert into t2 values(2, 3); --error ER_CANT_LOCK alter table t2 add f3 int not null, algorithm=copy; --error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON alter table t2 add f3 int not null, algorithm=inplace; --error ER_CANT_LOCK drop index idx on t2; --error ER_CANT_LOCK update t2 set f1=3 where f2=2; --error ER_INNODB_READ_ONLY create table t1(f1 int not null)engine=innodb; --error ER_BAD_TABLE_ERROR drop table t1; --error ER_ERROR_ON_RENAME rename table t2 to t3; --error ER_OPEN_AS_READONLY truncate table t2; --error ER_CREATE_FILEGROUP_FAILED create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; --error ER_BAD_TABLE_ERROR drop table t2; show tables; let $restart_parameters = restart; --source include/restart_mysqld.inc drop table t2; show tables;