When you need to purge binary logs on a MySQL server, you just need to connect to your server and use the PURGE BINARY LOGS command like this : For example : Will purge all the binary logs before the date. Other method is to purge log file on « name » attribute of the log file. …
Tag: space
Hi all, after showing you how to simply check load average or memory usage on linux, today i’ll simply show you how to check disk space and take action if a threshold is reached. We’ll simply use df, grep, awk, cut and if/then to do this : Just put it in your crontab and you’ll …