I’m using wordpress and I want to see all SQL being executed at the back-end. Do you guys any good tool which can be used to view any SQL executed by MySQL??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just turn on query logging. Here is a blog article that describes how to do it in detail: MySQL Query Logging.
To enable General query log add log line under the mysqld section in /etc/my.cnf configuration file and restart MySQL server.
Many Linux distributions (like Fedora) come with created /var/log/mysqld.log file. Just be sure that mysqld.log file exists and mysql user has permissions to write. If you need to create a log file, use these commands:
To see the logs use this command