Monitor all MySQL execution statements

Source: Internet
Author: User

Sometimes we use the PHP framework and the ready-made ORM to save the trouble of writing SQL, but we want to see which sqls have been generated. Or we have downloaded WordPress or druapl, I want to see how my SQL is written. If I can monitor every step of MySQL, it's not difficult. I just need to configure it a little and add a tool.


First, open % mysqldir % My. ini (My. CnF in Linux) and add this sentence.

1. # Specify the log location 2. Log = C:/appserv/MySQL. Log 3. # Or log =/in Linux/ VaR /Log/MySQL. Log

In this way, MySQL will write all operation records in the mysql. log file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.