MySQL Log of invalid Queries

前端 未结 5 2058
一生所求
一生所求 2021-02-05 05:25

I AM NOT RUNNING THE COMMANDS FROM PHP!

I have MySQL log_error value set to /var/log/mysql/error.log

However when I connect to a database and run an SQL command,

5条回答
  •  再見小時候
    2021-02-05 06:09

    Error log doesn't do that: https://dev.mysql.com/doc/refman/8.0/en/error-log.html

    The error log contains information indicating when mysqld was started and stopped and also any critical errors that occur while the server is running.

    MySQL doesn't log invalid/failed queries anywhere.


    If it's for debugging purposes, you might try setting up a MySQL Proxy, which could log this I think:

    http://dev.mysql.com/downloads/mysql-proxy/

提交回复
热议问题