rpl_drop_db.test

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· TEST 代码 · 共 63 行

TEST
63
字号
# test case for BUG#4680 -- if there are extra files in the db directory# dropping the db on the master causes replication problems-- source include/master-slave.incconnection master;--disable_warningsdrop database if exists mysqltest1;--enable_warningscreate database mysqltest1;create table mysqltest1.t1 (n int);insert into mysqltest1.t1 values (1);select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';create table mysqltest1.t2 (n int);create table mysqltest1.t3 (n int);--replace_result \\ /--error 1010drop database mysqltest1;use mysqltest1;show tables;# test the branch of the code that deals with the query buffer overflow--disable_query_loglet $1=50;while ($1){  eval create table mysqltest1.mysqltest_long_table_name$1 (n int);  dec $1;}--enable_query_log--replace_result \\ /--error 1010drop database mysqltest1;use mysqltest1;show tables;use test;create table t1 (n int);insert into t1 values (1234);sync_slave_with_master;connection slave;use mysqltest1;show tables;use test;select * from t1;connection master;drop table t1;sync_slave_with_master;#cleanupconnection slave;stop slave;drop database mysqltest1;connection master;# Remove the "extra" file created above--remove_file $MYSQLTEST_VARDIR/master-data/mysqltest1/f1.txtdrop database mysqltest1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?