/ Published in: MySQL
URL: http://dev.mysql.com/doc/refman/5.0/en/purge-binary-logs.html
Used to make sure the server log dose not fill up the hd.
Expand |
Embed | Plain Text
PURGE BINARY LOGS BEFORE 'yyyy-mm-dd';
Comments
Subscribe to comments
You need to login to post a comment.

SET GLOBAL expirelogsdays = 10;
+++++++++++++++++++++++++++++++
vi /etc/my.cnf
expirelogsdays = 10
+++++++++++++++++++++++++++++++