Turn on query logging in MySQL

By Joao

Add the following to /etc/my.cnf:

log=/var/log/queries.log

Then restart mysqld.

All queries will be logged to that file. In MySQL 4.1 the log file must already exists beforehand. Check /var/log/mysqld.log during startup in case it’s not logging anything.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.



categoriaTechnology commentoNo Comments dataJanuary 7th, 2010

About... Joao

This author published 13 posts in this site.

Share

FacebookTwitterEmailWindows LiveTechnoratiDeliciousDiggStumbleponMyspaceLikedin

Leave a comment