mysql binary files -- need to reduce 33G of binlog files
Posted: Thu Jan 06, 2022 11:10 am
Hello
i'm using nagios xi 5.8.1
my root partition is almost full
on investigation i have approx 30Gigs of mysql binary log files spanning back 1 month
i have tried to follow the document below
https://support.nagios.com/forum/viewto ... ry#p320510
but the file locations are out of date.
trying to find /etc/mycnf.d/ or the file i should be altering
quote from support forum link
The binlog_expire_logs_seconds can be decreased.
Edit the /etc/my.cnf.d/mysql-server.cnf file and add this line to the bottom.
binlog_expire_logs_seconds=86400
To purge the data, run this:
echo "PURGE BINARY LOGS BEFORE '2020-11-05 23:59:59';" |mysql -u root -pnagiosxi
thanks for any help given
richie
i'm using nagios xi 5.8.1
my root partition is almost full
on investigation i have approx 30Gigs of mysql binary log files spanning back 1 month
i have tried to follow the document below
https://support.nagios.com/forum/viewto ... ry#p320510
but the file locations are out of date.
trying to find /etc/mycnf.d/ or the file i should be altering
quote from support forum link
The binlog_expire_logs_seconds can be decreased.
Edit the /etc/my.cnf.d/mysql-server.cnf file and add this line to the bottom.
binlog_expire_logs_seconds=86400
To purge the data, run this:
echo "PURGE BINARY LOGS BEFORE '2020-11-05 23:59:59';" |mysql -u root -pnagiosxi
thanks for any help given
richie