| 1 |
SET @@global.expire_logs_days = 0; |
| 2 |
Warnings: |
| 3 |
Warning 1287 '@@expire_logs_days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. |
| 4 |
SET @@global.binlog_expire_logs_auto_purge = OFF; |
| 5 |
FLUSH LOGS; |
| 6 |
FLUSH LOGS; |
| 7 |
SET GLOBAL binlog_expire_logs_seconds=3; |
| 8 |
FLUSH LOGS; |
| 9 |
SET @@global.binlog_expire_logs_auto_purge = ON; |
| 10 |
FLUSH LOGS; |
| 11 |
SET @@global.binlog_expire_logs_auto_purge = ON; |
| 12 |
SET @@global.binlog_expire_logs_seconds = 0; |
| 13 |
FLUSH LOGS; |
| 14 |
FLUSH LOGS; |
| 15 |
FLUSH LOGS; |
| 16 |
SET @@global.binlog_expire_logs_auto_purge = OFF; |
| 17 |
FLUSH LOGS; |
| 18 |
FLUSH LOGS; |
| 19 |
PURGE BINARY LOGS TO 'SECOND_BINLOG_FILE'; |
| 20 |
SET @@global.binlog_expire_logs_auto_purge = OFF; |
| 21 |
SET @@global.binlog_expire_logs_auto_purge = 0; |
| 22 |
FLUSH LOGS; |
| 23 |
FLUSH LOGS; |
| 24 |
FLUSH LOGS; |
| 25 |
PURGE BINARY LOGS BEFORE 'DATE'; |
| 26 |
FLUSH LOGS; |
| 27 |
SET GLOBAL binlog_expire_logs_seconds=2592000; |
| 28 |
SET GLOBAL binlog_expire_logs_auto_purge=1; |
| 29 |
SET GLOBAL expire_logs_days=0; |
| 30 |
Warnings: |
| 31 |
Warning 1287 '@@expire_logs_days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. |
| 32 |
RESET MASTER; |