mysql查询正在执行的sql

mysql> SHOW VARIABLES LIKE "general_log%";

+------------------+----------------------------+
| Variable_name | Value |
+------------------+----------------------------+
| general_log | OFF |
| general_log_file | /var/run/mysqld/mysqld.log |
+------------------+----------------------------+

mysql> SET GLOBAL general_log = 'ON';

Then don't forget to

mysql> SET GLOBAL general_log = 'OFF';

 

from: https://*.com/a/7470567/8025086

 

上一篇:二分 + 模拟 - Carries


下一篇:MySQL 拿 WebShell