Server IP : 104.21.38.3 / Your IP : 104.23.176.7 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/r/ |
Upload File : |
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; # Restart the server with innodb_force_recovery as 4. # restart: --innodb-force-recovery=4 select * from t1; f1 f2 1 2 insert into t1 values(2, 3); ERROR HY000: Table 't1' is read only alter table t1 add f3 int not null, algorithm=copy; ERROR HY000: InnoDB is in read only mode. alter table t1 add f3 int not null, algorithm=inplace; ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Operation not allowed when innodb_forced_recovery > 0.. Try ALGORITHM=COPY. drop index idx on t1; ERROR HY000: InnoDB is in read only mode. update t1 set f1=3 where f2=2; ERROR HY000: Table 't1' is read only create table t3(f1 int not null)engine=innodb; ERROR HY000: InnoDB is in read only mode. drop table t3; ERROR 42S02: Unknown table 'test.t3' rename table t1 to t3; ERROR HY000: Error on rename of './test/t1' to './test/t3' (errno: 165 - Table is read only) truncate table t1; ERROR HY000: Table 't1' is read only create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; ERROR HY000: Failed to create TABLESPACE t1 drop table t1; show tables; Tables_in_test t2 # Restart the server with innodb_force_recovery as 5. # restart: --innodb-force-recovery=5 select * from t2; f1 f2 1 2 insert into t2 values(2, 3); ERROR HY000: Table 't2' is read only alter table t2 add f3 int not null, algorithm=copy; ERROR HY000: InnoDB is in read only mode. alter table t2 add f3 int not null, algorithm=inplace; ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Operation not allowed when innodb_forced_recovery > 0.. Try ALGORITHM=COPY. drop index idx on t2; ERROR HY000: InnoDB is in read only mode. update t2 set f1=3 where f2=2; ERROR HY000: Table 't2' is read only create table t1(f1 int not null)engine=innodb; ERROR HY000: InnoDB is in read only mode. drop table t1; ERROR 42S02: Unknown table 'test.t1' rename table t2 to t3; ERROR HY000: Error on rename of './test/t2' to './test/t3' (errno: 165 - Table is read only) truncate table t2; ERROR HY000: Table 't2' is read only create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; ERROR HY000: Failed to create TABLESPACE t1 drop table t2; ERROR 42S02: Unknown table 'test.t2' show tables; Tables_in_test t2 # Restart the server with innodb_force_recovery as 6. # restart: --innodb-force-recovery=6 select * from t2; f1 f2 1 2 insert into t2 values(2, 3); ERROR HY000: Can't lock file (errno: 165 - Table is read only) alter table t2 add f3 int not null, algorithm=copy; ERROR HY000: Can't lock file (errno: 165 - Table is read only) alter table t2 add f3 int not null, algorithm=inplace; ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Operation not allowed when innodb_forced_recovery > 0.. Try ALGORITHM=COPY. drop index idx on t2; ERROR HY000: Can't lock file (errno: 165 - Table is read only) update t2 set f1=3 where f2=2; ERROR HY000: Can't lock file (errno: 165 - Table is read only) create table t1(f1 int not null)engine=innodb; ERROR HY000: InnoDB is in read only mode. drop table t1; ERROR 42S02: Unknown table 'test.t1' rename table t2 to t3; ERROR HY000: Error on rename of './test/t2' to './test/t3' (errno: 165 - Table is read only) truncate table t2; ERROR HY000: Table 't2' is read only create tablespace t1 add datafile 't1.ibd' Engine=InnoDB; ERROR HY000: Failed to create TABLESPACE t1 drop table t2; ERROR 42S02: Unknown table 'test.t2' show tables; Tables_in_test t2 # restart drop table t2; show tables; Tables_in_test