How to enable MySQL Query Log?

后端 未结 14 1655
渐次进展
渐次进展 2020-11-22 09:38

How do I enable the MySQL function that logs each SQL query statement received from clients and the time that query statement has submitted? Can I do that in phpmyadmin or N

14条回答
  •  梦谈多话
    2020-11-22 10:03

    You can disable or enable the general query log (which logs all queries) with

    SET GLOBAL general_log = 1 # (or 0 to disable)
    

提交回复
热议问题