We've had some problems with one of our more elderly MySQL servers (version 5.045). The database is back up and running OK but there were over twenty thousand binary log files in the mysql folder.
I logged into MySQL and issued the following command after checking that data replication was all working OK...
purge binary logs to 'mysql-bin.024717';
The command completed without error and the resulting mysql-bin.index looks like this...
./mysql-bin.024717 ./mysql-bin.024718 ./mysql-bin.024719 ./mysql-bin.024720 ./mysql-bin.024721 ./mysql-bin.024722 ./mysql-bin.024723 ./mysql-bin.024724
When I left mysql a lot of files had gone, but now there are still over a thousand binary log files left, all from before mysql-bin.024717 and most of them only containing 117 bytes.
Given that they are no longer referenced in the mysql-bin.index file is it OK for me to just go ahead and remove them with rm at the OS level or do I need to do something else to clean them up?
Thanks in Advance