Mysql记录查询SQL日志
Abstract
Mysql设置变量的方法
* 利用“set GLOBAL|SESSION 需要设置的variables”语句修改;
* 利用“set @用户variables”或者“set @@系统variables”语句修改。
## sql日志
`
Mysql设置变量的方法
- 利用“set GLOBAL|SESSION 需要设置的variables”语句修改;
- 利用“set @用户variables”或者“set @@系统variables”语句修改。
sql日志
show variables like '%log_output%'; //查看参数
SHOW VARIABLES LIKE "general_log%"; -- 查看是否开启 普通日志
SHOW VARIABLES LIKE "%slow_query_log%"; -- 查看是否开启慢日志
SET GLOBAL log_output = 'T
Login required to read the rest of the content
登录 to comment~
Guess you like
Recommended articles