I’m trying to setup mysql query profiling as highlighted in http://dev.mysql.com/doc/refman/5.1/en/log-destinations.html
In
/etc/my.cnf
I added:
general_log=1
log_output=FILE
log=/tmp/mysql.log
i did
/etc/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
My mysql version is:
Server version: 5.0.77 Source distribution
But it did not work! No /tmp/mysql.log
The problem you have is that
log_outputwas introduced in 5.1.Take a look: http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_log_output
Also, in the article you pointed it says: