Home >Database >Mysql Tutorial >mysql参数_MySQL

mysql参数_MySQL

WBOY
WBOYOriginal
2016-06-01 13:45:07856browse

bitsCN.com

慢查询是否开启

select @@log_slow_queries;

 

慢查询时间

select @@long_query_time;

 

错误文件地址

select @@log_error;

 

数据文件地址

select @@datadir

 

没有使用索引的语句记录到慢查询日志文件

show variables like 'log_queries_not_using_indexes';

 

得到创建表的语句

show create table mysql.slow_log;

 

查询日志

mysql.general_log;

 

作者“yufeng0471”
 

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn