2

I am trying to audit MySQL commands for users on Percona. Current version of Percona is 55-5.5.22-rel25.2.237.rhel5.

The following URL gives guidance, however I do not know how to get it working.

http://www.percona.com/doc/percona-server/5.5/diagnostics/mysql_syslog.html

I attempted to add to /etc/my.cnf

[mysqld]
syslog 

However I keep getting error messages starting.

130601 18:50:09 [ERROR] /usr/sbin/mysqld: unknown option '--syslog'

Anyone managed to get audit commands using that option?

Diden
  • 129
  • 3
  • 12

1 Answers1

4

The syslog option goes in the [mysql] section, not in the [mysqld] section, it's only for the client, not the server.

So this does not provide any auditing of mysql commands, for that you need to enable query logging. For MySQL you'll find documentation here, I didn't find percona-specific documentation unfortunately.

Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70