1RESET MASTER; 2############################################################## 3testing purge binary logs to max number on explicit FLUSH LOGS 4############################################################## 5show binary logs; 6Log_name File_size 7master-bin.000001 # 8CREATE TABLE t1 (a int primary key auto_increment, b blob); 9flush logs; 10show binary logs; 11Log_name File_size 12master-bin.N N 13master-bin.N N 14DROP TABLE t1; 15reset master; 16############################################################## 17testing purge binary logs to max number on implicit flush 18i.e. when starting new file 19############################################################## 20show binary logs; 21Log_name File_size 22master-bin.000001 # 23CREATE TABLE t1 (a int primary key auto_increment, b blob); 24show binary logs; 25Log_name File_size 26master-bin.N N 27master-bin.N N 28DROP TABLE t1; 29reset master; 30End of tests 31