polardbxengine/mysql-test/suite/innodb_undo/include/truncate_recover_run.inc

19 lines
615 B
PHP

let $MYSQLD_DATADIR = `select @@datadir`;
create table t1
(keyc int, c1 char(100), c2 char(100),
primary key(keyc)) engine = innodb;
begin;
call populate_t1();
delete from t1 where keyc < 20000;
update t1 set c1 = 'mysql' where keyc > 20000;
update t1 set c2 = 'oracle' where keyc > 20000;
eval set global debug = $debug_point;
commit;
--let $shutdown_server_timeout= 300
--source include/shutdown_mysqld.inc
--source include/search_pattern.inc
--remove_files_wildcard $MYSQLD_DATADIR cht_logbin.*
--remove_files_wildcard $MYSQLD_DATADIR binlog.*
--source include/start_mysqld.inc
drop table t1;