They are taking up too much space:
/var/lib/mysql/jiaoyou-slow.log: 53M
/var/lib/mysql/mysql-bin.000005: 68M
/var/lib/mysql/mysql-bin.000003: 1.1G
/var/lib/mysql/mysql-bin.000007: 34M
/var/lib/mysql/mysql-bin.000004: 225M
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
There are a few reasons to use binary logging. In order of importance:
So there are three things to check before you delete any binary logs:
If you are happy with the answers to all of those then go ahead and delete them with the A much better approach, as kedar notes, is to use | |||
|
feedback
|
|
no, you not should delete them by hand there is a command to remove them, if delete them mysql would crash. the command is:
see here for more information. | |||||
feedback
|
|
you may also use expire_logs_days http://dev.mysql.com/doc/refman/5.0/en/purge-binary-logs.html | |||
|
feedback
|
|
Its safe to remove the slow query log ( | |||
|
feedback
|