I am trying to log all the connection attempts in my MySQL server (don't worry, it's a low traffic one). Here is my my.cnf file:
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid general_log=1 general_log_file=/var/log/mysqld.log But, after restarting, it doesn't work. All I see in the log when there's a connection to the database is:
[ERROR] Invalid (old?) table or database name '.pki' The server version is 5.1.73. What am I doing wrong? (Also, despite this being a low traffic server, is there any performance advantage in enabling logging to a SQL table instead of to a file?)