1
# check that CSV engine was compiled in, as the result of the test
2
# depends on the presence of the log tables (which are CSV-based).
3
--source include/have_csv.inc
6
# Clean up after previous tests
10
DROP TABLE IF EXISTS t1, `t``1`, `t 1`;
11
drop database if exists client_test_db;
15
# Bug #13783 mysqlcheck tries to optimize and analyze information_schema
17
--replace_result 'Table is already up to date' OK
18
--exec $DRIZZLE_CHECK --all-databases --analyze --optimize
19
--replace_result 'Table is already up to date' OK
20
--exec $DRIZZLE_CHECK --analyze --optimize --databases test information_schema
21
--exec $DRIZZLE_CHECK --analyze --optimize information_schema schemata
24
# Bug #30654: mysqlcheck fails during upgrade of tables whose names include backticks
26
create table `t``1`(a int);
27
create table `t 1`(a int);
28
--replace_result 'Table is already up to date' OK
29
--exec $DRIZZLE_CHECK --databases test
30
drop table `t``1`, `t 1`;
33
# Bug#25347: mysqlcheck -A -r doesn't repair table marked as crashed
35
create database d_bug25347;
37
create table t_bug25347 (a int) engine=MyISAM;
38
insert into t_bug25347 values (1),(2),(3);
40
--echo removing and creating
41
--remove_file $MYSQLTEST_VARDIR/master-data/d_bug25347/t_bug25347.MYI
42
--write_file $MYSQLTEST_VARDIR/master-data/d_bug25347/t_bug25347.MYI
44
--exec $DRIZZLE_CHECK --repair --databases d_bug25347
46
insert into t_bug25347 values (4),(5),(6);
47
--exec $DRIZZLE_CHECK --repair --use-frm --databases d_bug25347
48
insert into t_bug25347 values (7),(8),(9);
49
select * from t_bug25347;
50
drop table t_bug25347;
51
drop database d_bug25347;
54
--echo End of 5.0 tests