Server IP : 104.21.38.3 / Your IP : 108.162.226.27 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 : |
set names utf8; CREATE TABLE corrupt_bit_test_ā( a INT AUTO_INCREMENT PRIMARY KEY, b CHAR(100), c INT, z INT, INDEX idx(b)) ENGINE=InnoDB STATS_PERSISTENT=0; INSERT INTO corrupt_bit_test_ā VALUES(0,'x',1, 1); CREATE UNIQUE INDEX idxā ON corrupt_bit_test_ā(c, b); CREATE UNIQUE INDEX idxē ON corrupt_bit_test_ā(z, b); SELECT * FROM corrupt_bit_test_ā; a b c z 1 x 1 1 INSERT INTO corrupt_bit_test_ā SELECT 0,b,c+1,z+1 FROM corrupt_bit_test_ā; select count(*) from corrupt_bit_test_ā; count(*) 2 SET SESSION debug="+d,dict_set_index_corrupted"; check table corrupt_bit_test_ā; Table Op Msg_type Msg_text test.corrupt_bit_test_ā check Warning InnoDB: The B-tree of index idx is corrupted. test.corrupt_bit_test_ā check Warning InnoDB: The B-tree of index idxā is corrupted. test.corrupt_bit_test_ā check Warning InnoDB: The B-tree of index idxē is corrupted. test.corrupt_bit_test_ā check error Corrupt SET SESSION debug="-d,dict_set_index_corrupted"; CREATE INDEX idx3 ON corrupt_bit_test_ā(b, c); ERROR 42000: Can't open table CREATE INDEX idx4 ON corrupt_bit_test_ā(b, z); ERROR 42000: Can't open table select c from corrupt_bit_test_ā; ERROR HY000: Index corrupt_bit_test_ā is corrupted select z from corrupt_bit_test_ā; ERROR HY000: Index corrupt_bit_test_ā is corrupted show warnings; Level Code Message Warning 180 InnoDB: Index idxē for table `test`.`corrupt_bit_test_ā` is marked as corrupted Error 1712 Index corrupt_bit_test_ā is corrupted insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001); select * from corrupt_bit_test_ā use index(primary) where a = 10001; a b c z 10001 a 20001 20001 begin; insert into corrupt_bit_test_ā values (10002, "a", 20002, 20002); delete from corrupt_bit_test_ā where a = 10001; insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001); rollback; drop index idxā on corrupt_bit_test_ā; check table corrupt_bit_test_ā; Table Op Msg_type Msg_text test.corrupt_bit_test_ā check Warning InnoDB: Index idx is marked as corrupted test.corrupt_bit_test_ā check Warning InnoDB: Index idxē is marked as corrupted test.corrupt_bit_test_ā check error Corrupt set names utf8; select z from corrupt_bit_test_ā; ERROR HY000: Index corrupt_bit_test_ā is corrupted drop index idxē on corrupt_bit_test_ā; CREATE INDEX idx3 ON corrupt_bit_test_ā(b, c); ERROR 42000: Can't open table CREATE INDEX idx4 ON corrupt_bit_test_ā(b, z); ERROR 42000: Can't open table drop index idx on corrupt_bit_test_ā; CREATE INDEX idx3 ON corrupt_bit_test_ā(b, c); CREATE INDEX idx4 ON corrupt_bit_test_ā(b, z); select z from corrupt_bit_test_ā limit 10; z 20001 1 2 drop table corrupt_bit_test_ā;