There are 2 different possible situations you can face when you
have to deal with MySQL and syslog:
- MySQL is used as back-end for syslog to store the logging information. [6]
- MySQL itself should report to the syslog.
In this blog article we look at the second situation: How can you
make MySQL reporting to the syslog.
Since the version 5.1.20 MySQL is capable to log to the syslog
[1], [2]. This is done by the MySQL angel process
mysqld_safe.
You can enable the syslog when you add the syslog parameter to
the MySQL configuration file (my.cnf) in the mysqld_safe
section:
[mysqld_safe]
syslog
Currently MySQL is not capable to log to more than one logging
facility at the same time. So you have to decide if you want to
log either to the error log or to the syslog.
If you specify both, syslog and error-log, at …