show variables like'%log%'

show status like '%thread%';

show global variables like '%time%';

show variables like '%time%';  

设置
general_log
SET GLOBAL log_output=FILE; 
SET GLOBAL general_log_file
='/usr/local/mysql/data/general.log';
SET GLOBAL general_log
=ON; SHOW GLOBAL VARIABLES LIKE '%log%';

 

posted on 2017-08-16 18:14  网络终结者  阅读(161)  评论(0编辑  收藏  举报