Home > Database > Mysql Tutorial > 开启Mysql慢查询_MySQL

开启Mysql慢查询_MySQL

WBOY
Release: 2016-05-31 08:46:11
Original
979 people have browsed it

long_query_time  = 1;
log-show-queries = 'mysql_slow.log';

log-queries-not-using=indexes



mysqlreport 软件



行锁定 InnodB 表锁定 Myisam


innodb_buffer_pool_size

mysqlreport 重要软件

innodb_flush_method = O_DIRECT

使用查询缓存
query_cache_size = 268435456
query_cache_type = 1
query_cache_limit = 1048576

出现update或者insert 查询缓存都会失效

设置临时表的大小
tmp_table_size = 10000
线程池
thread_cache_size= 100



http://zh.linuxvirtualserver.org/  lvs中文站

LVS_DR

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template