I have a server with Ubuntu 18.04 and MySQL 8.0.11
I have binlog files in /var/lib/mysql
that make several GO and my server will soon saturate.
How to change the expiration date of binlog files ?
If I go to :
nano /etc/mysql/my.cnf
The file contains :
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
If I go to :
nano /etc/mysql/conf.d/mysql.cnf
The file contains :
[mysql]
If I go to :
nano /etc/mysql/mysql.conf.d/mysqld.cnf
The file contains :
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
log-error = /var/log/mysql/error.log
I can not find the file to configure. Is it safe for the database to change the timeout ?