1 # Save the initial number of concurrent sessions
2 --source include/count_sessions.inc
4 connect (con1,localhost,root,,);
5 connect (con2,localhost,root,,);
8 drop table if exists t1,t2;
9 drop view if exists v1;
12 # Add a lot of keys to slow down check
13 create table t1(n int not null, key(n), key(n), key(n), key(n));
18 eval insert into t1 values ($1);
22 send check table t1 extended;
24 insert into t1 values (200000);
36 # Bug#9897 Views: 'Check Table' crashes MySQL, with a view and a table
39 Create table t1(f1 int);
40 Create table t2(f1 int);
41 Create view v1 as Select * from t1;
48 # Bug#26325 TEMPORARY TABLE "corrupt" after first read, according to CHECK TABLE
50 CREATE TEMPORARY TABLE t1(a INT);
56 # Wait till we reached the initial number of concurrent sessions
57 --source include/wait_until_count_sessions.inc