I have 2 installations of rsyslog (thanks for the excellent piece of software, btw). One on a Debian Sarge box, and the other on a RedHat ES3 box, both with local MySQL DBs. The Debian box works perfectly, but the RedHat box has a problem logging to MySQL. I see the following in my syslogs when rsyslog tries to talk to the DB (rsyslog setup to log to a log and MySQL):
Oct 28 10:29:33 <munged> rsyslogd: db error (1045): Access denied for user: 'root@localhost' (Using password: NO)
Oct 28 10:29:33 <munged> rsyslogd: db error (2006): MySQL server has gone away
This is strange since I have specified the user and pass it should be using to log to MySQL.
My rsyslogd.conf file contains the following line to specify logging to MySQL with the default format:
*.* >127.0.0.1,Syslog,rsysloger,<munged>
I have granted the user rsysloger all privileges on the database Syslog, created by createDB.sql.
I am seeing the same error with 1.0.2 and 1.11.1 on the RH machine. It's running MySQL 4.0.16, rsyslog compiled under gcc 3.4.3.
Rsyslogd -v output:
rsyslogd 1.11.1, compiled with:
FEATURE_DB
FEATURE_LARGEFILE
SYSLOG_INET (Internet/remote support)
Thank you all in advance for any insight this community can offer on this issue.


