i have a mac with snow leopard and i have sequel pro and im trying to figure out how i can view all the queries that are being done on my web site so that i can track down the problem. how can i do this? on sequel pro there is a console that i can click on and all it shows me are the selects being done so when i do a delete it doesnt show that. would this information be somewhere?
Share
Open /etc/my.cnf or create it if it does not already exist. Add or uncomment the line
log=/var/log/mysqld.login the[mysqld]section.Create the logfile with
sudo touch /var/log/mysqld.logand make it writeable for the mysql user withsudo chown _mysqld /var/log/mysqld.log. Note that you’ll may have to replace_mysql!Now restart MySQL and view the log with
tail -f /var/log/mysqld.logor in console app.