On my.cnf, you can see the message like this.
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
Therefore, if you want to see MariaDB Error Log, then you need to check syslog.
For e.g.
$ cat /var/log/syslog | grep "mysql" $ cat /var/log/syslog | grep "mariadb"
But, you can store error log to a certain file instead of syslog by editing "/etc/mysql/conf.d/mysqld_safe_syslog.cnf".
$ sudo vi /etc/mysql/conf.d/mysqld_safe_syslog.cnf
[mysqld_safe] skip_log_error #syslog
Then, specify the error log file path on my.cnf.
$ vi /etc/mysql/my.cnf
log_error = /var/log/mysql/error.log
Restart MariaDB.
Then error log will be stored into /var/log/mysql/error.log.
Reference.
https://mariadb.com/kb/en/mariadb/error-log/
No comments:
Post a Comment