mysqld logging
Mike Wright
mike.wright at mailinator.com
Fri Aug 31 20:08:02 UTC 2012
On 08/31/2012 12:14 PM, Martín Marqués wrote:
> How can I get queries to get logged in mysqld? I tried adding these
> lines to /etc/my.cnf on tag [mysqld] with no luck (yes I restarted the
> daemon):
>
> long_query_time=0
> general_log=1
> general_log_file = /var/log/mysql.log
>
> Any ideas?
>
I have this in my.cnf
[mysqld]
log=/var/log/mysql.log
Note: /var/log/mysql.log *must* already exist with ownership of mysql:mysql.
More information about the users
mailing list