← Back to team overview

maria-discuss team mailing list archive

question about generating logs on MariaDB 10.1.21



I have just moved from a MySQL 5.6 server on CentOS 6.8 to a MariaDB 10.1.21 server on CentOS 7. It is installed and working.

I would like to set up some logging, but it has not gone as expected. I have binary logging working. However, I can't generate general logs or error logs. Here is part of the /etc/my.cnf file:

port            = 3306
socket          = /var/lib/mysql/mysql.sock
datadir = /mnt/mysqldbs
log_error = /var/log/mysql/error.log
general_log_file = /var/log/mysql/mysql.log
general_log = 1
log_bin = /mnt/mysqldbs/logs/mysql-bin

I assume that after a restart, the logs will be generated, then logged to as events happen. As it is, no log files are generated.

Many thanks.

Follow ups