ABHIONLINUX
Site useful for linux administration and web hosting

2009/08/15

To Delete MySQL bin-log files

Log files are in /var/lib/mysql/

root@server01 [~]# find /var/lib/mysql/ -name 'mysql-bin.*' | wc -l
21115
root@server01 [~]# find /var/lib/mysql/ -name 'mysql-bin.*' -exec rm -f {} \;
root@server01 [~]# find /var/lib/mysql/ -name 'mysql-bin.*' | wc -l
0

No comments:

Post a Comment