mysql有以下几种日志:错误日志:log-err查询日志:log慢查询日志:log-slow-queries更新日志:log-update二进制日志: log-bin要把日志生成在 /var/log 目录下(是系统日志存放的地方,只有 root 账号有写权限),需要 MySQL 进程对这个目录有读...
分类:
数据库 时间:
2015-11-25 22:18:04
阅读次数:
371
开启mysql慢查询日志vi /etc/my.cnfslow-query-log = on#开启MySQL慢查询功能slow_query_log_file = /data/mysql/127-slow.log#设置MySQL慢查询日志路径long_query_time = 5#修改为记录5秒内的查询...
分类:
数据库 时间:
2015-11-20 12:13:58
阅读次数:
173
1,配置开启Linux:在mysql配置文件my.cnf中增加log-slow-queries=/var/lib/mysql/slowquery.log (指定日志文件存放位置,可以为空,系统会给一个缺省的文件host_name-slow.log)long_query_time=2 (记录超过的时间...
分类:
数据库 时间:
2015-11-19 20:45:23
阅读次数:
231
本文来自:http://isadba.com/?p=651一、pt-query-digest参数介绍. pt-query-digest --user=anemometer --password=anemometerpass --review h=192.168.11.28,D=slow_qu...
分类:
其他好文 时间:
2015-11-19 16:18:12
阅读次数:
213
1.通过show status 命令了解各种sql的执行效率2.定位执行效率较低的SQL语句 开启慢查询记录: 打开Mysql配置文件my.ini ,找到 [mysqld] 在其下面添加 long_query_time = 2 // 慢查询时间 log_slow_queries = E:/m...
分类:
数据库 时间:
2015-11-17 23:27:04
阅读次数:
201
网上都巨坑 最后在官网找到了开启方法 原来是配置文件改了Updated example for 2015 MySQL 5.6:slow_query_log = 1slow_query_log_file = /var/log/mysql/slow.loglong_query_time = 10log_...
分类:
数据库 时间:
2015-11-17 16:29:24
阅读次数:
172
8:00-10:00 VB paper, image generation paper10:00-11:00 school info2:30-4:00 schoo info4:00-5:40 leetcode7:00-9:30 a medium probso slow...borwse too ma...
分类:
其他好文 时间:
2015-11-16 22:36:48
阅读次数:
178
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解题思路:If we have 2 pointers - fast and slow...
分类:
其他好文 时间:
2015-11-13 06:17:45
阅读次数:
176
Keep Your PerspectiveJames Graham, PMP Ta’ l-Ibrag, Malta
WhEn gAThERIng BUSInESS REqUIREMEnTS FRoM USERS, it is common to hear “the system is slow,” “the application is unreliable and crashes,” “it d...
分类:
其他好文 时间:
2015-11-11 10:09:55
阅读次数:
244
1.基本show()显示效果$(document).ready(function(){ $("button").click(function(){ //$(".one").show(); $(".one").show("slow"); });});hide()隐藏效果$(docum...
分类:
Web程序 时间:
2015-11-11 01:06:14
阅读次数:
212