I changed location of mysql bin-log files. I copied them so mysql started fine, because they where in both locations, but then removed them from old location. I forget about correcting the path in index file and now I have problems with purging old binary logs.
So my question is it safe to correct paths in index file while mysql server is running
For example cat correct.index > mysql-bin.index
My server version is mariadb 5.5
Best Answer
This is not a supported procedure as highlighted in official MySQL documentation:
So no, it's not safe to edit binary log index while
mysqld
is running.