How to enable MySQL Query Log?

后端 未结 14 1676
渐次进展
渐次进展 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:01

    // To see global variable is enabled or not and location of query log    
    SHOW VARIABLES like 'general%';
    // Set query log on 
    SET GLOBAL general_log = ON; 
    

提交回复
热议问题