1
purge master logs before (select adddate(current_timestamp(), interval -4 day));
2
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select adddate(current_timestamp(), interval -4 day))' at line 1
3
purge master logs before adddate(current_timestamp(), interval -4 day);
4
create table t1(a int,b int,key(a),key(b));
5
insert into t1(a,b) values (1,2),(2,1),(2,3),(3,4),(5,4),(5,5),