Hi Good day every one
I got a problem checking my server i found that my harddisk is almost full only 1gb remaining , after checking i found that what is taking almost 90% of my storage is Mysql binlog files and i found that there is replication happing phpmyadmin say’s so in the status page and i actually personally didn’t start any replication jobs and i don’t know which one of my wordpress websites that started such replication job , i added " server_id = 0 " to mysql conf file to stop any replication but the binlog part still flooding my server storage .
If any one can please give some advice
Thank you in advance
Data bases are my weakest point but searching shows this. Do you have any site with data worth stealing? Do you have users or is it just you? If you haven’t set up a database to sync then it is a user or worse? Or do the word press sites share data? Bottom line, 1 gig storage with multiple sites is far from optimal.
Replication
MySQL BinLogs are essential for replication between multiple databases. By keeping track of changes made to one database, the other databases can be kept up to date with the most recent changes. This is an important tool for keeping data consistent across multiple databases.
thank you for reply , my storage is not 1gb but 1gb is what is left binlog files eat up almost 200gb storage, i don’t know if its one of the websites i have or worse !
You can either completely disable it (skip-log-bin) or set a default expiry time (binlog_expire_logs_seconds), as the default is to store the files is for 30 days.
Is that also true for MariaDb (latest) if not then that is another reason to bin MySQL! (it should be optional - so if you require it then turn it on = I suspect most would leave it well alone!)
Well thank you for the info i hope that is the main reason , i already turned the binlog off to stop the binlog flooding , i was worrying that there might be a backdoor in my server
Binary logging is there for a purpose (data replication and restoration), so it might be better to reduce the amount of data you are storing instead, if you have the storage capacity.
You can do that by adding binlog_expire_logs_seconds to your /etc/my.cnf.d/mysql-server.cnf file (this example is a production DB server running Rocky 9.4 which stores 3 days of binary logs).
Of course all of this is relative to how busy the database server is!
That’s a bit unfair your opinions are your own and should not added to a forum, however with the software I run mysql which outstrips maria for perfomance but each to their own