How to enable MySQL Query Log?

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

    There is bug in MySQL 5.6 version. Even mysqld show as :

        Default options are read from the following files in the given order:
    C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf c:\Program Files (x86)\MySQL\MySQL Server 5.6\my.ini c:\Program Files (x86)\MySQL\MySQL Server 5.6\my.cnf 
    

    Realy settings are reading in following order :

        Default options are read from the following files in the given order:
    C:\ProgramData\MySQL\MySQL Server 5.6\my.ini C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf c:\Program Files (x86)\MySQL\MySQL Server 5.6\my.ini c:\Program Files (x86)\MySQL\MySQL Server 5.6\my.cnf
    

    Check file: "C:\ProgramData\MySQL\MySQL Server 5.6\my.ini"

    Hope it help somebody.

提交回复
热议问题