我想记录一般和慢速查询 my.conf是
[mysqld] log_bin="/var/lib/mysql/log"
datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock symbolic-links=0
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe] log-error=/var/log/mysqld.log slow-query-log=1 id-file=/var/run/mysqld/mysqld.pid
long_query_time=1
general_log=1 log_output=TABLE
但是在执行了一些sql(用户只有select权限)之后,那么
select * from mysql.general_log;
empty set.
select * from mysql.slow_log;
empty set.
为什么是空的?