MySQL log files deletion

Posted by aneez on Stack Overflow See other posts from Stack Overflow or by aneez
Published on 2010-04-30T08:44:33Z Indexed on 2010/04/30 11:37 UTC
Read the original article Hit count: 122

Filed under:
|

I have a master and slave database running on different nodes. The master DB is subjected to huge no. of inserts/updates. The master DB size is close to 6 GB, while the log files are now occupying a space of more than 120 GB. I am running out of disk space and need to get rid of the log files.

Will deleting the log files in anyway affect the slave DB ? Presently, the slave is just a couple of seconds behind the master.

Is there someplace where I can see what steps I need to follow to delete those files eg. 1)Shut down the slave 2)Shut down the master 3)Delete the log files 4)Start the Master 5)Start the Slave

Do I need to inform the slave that the log files have been deleted ?? If yes, what is the way to do it ?

Any help would be appreciated.

Thanks

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysqldb