一:开启general log模式 >set global general_log=1;二:查看日志文件 在数据库目录下,譬如“ /database/mysql/” 查询数据日志: #tail -f mariadb-slave01-slow.log 写数据日志: #tail -f...
分类:
数据库 时间:
2015-11-10 15:43:48
阅读次数:
238
js:// JavaScript Documentfunction b(){ t = parseInt(x.css('top')); y.css('top','19px'); x.animate({top: t - 19 + 'px'},'slow'); //19为每个li的高度 if(Math.....
分类:
Web程序 时间:
2015-11-05 10:46:33
阅读次数:
497
在上篇博客(http://cloudapps.blog.51cto.com/3136598/1708539)中,介绍了如何使用Apache的模块mod_evasive进行反DDOS攻击的设置,在这种模式中,主要预防的是对http的volumeattack,然而DDOS的攻击方式,各种工具非常多,随便搜一搜就知道了,我们回过头来看看,什么叫DOS/D..
分类:
系统相关 时间:
2015-11-02 12:18:11
阅读次数:
459
#隐藏、显示$("p").hide()$("p").show()$("p").hide(1000)$("p").toggle()#淡入淡出$("#div1").fadeIn()$("#div2").fadeIn("slow")$("#div3").fadeIn(3000)$("#div1").fad...
分类:
Web程序 时间:
2015-10-28 12:06:54
阅读次数:
141
1,隐藏和显示 hide();//隐藏 show();//显示 toggle();//隐藏和显示 注: hide(speed,callback); show(speed,callback); toggle(speed,callback); ----speed表示速度,可以是"slow","f...
分类:
Web程序 时间:
2015-10-23 18:29:13
阅读次数:
174
presentViewController is so slow in "tableView:didSelectRowAtIndexPath:"Use Case: 在UITableView的delegate方法"tableView:didSelectRowAtIndexPath:"中调用"[UIVi...
分类:
移动开发 时间:
2015-10-23 17:58:24
阅读次数:
204
本文导读:如何在mysql查找效率慢的SQL语句呢?这可能是困然很多人的一个问题,MySQL通过慢查询日志定位那些执行效率较低的SQL 语句,用--log-slow-queries[=file_name]选项启动时,mysqld 会写一个包含所有执行时间超过long_query_time 秒的SQL...
分类:
数据库 时间:
2015-10-19 19:23:02
阅读次数:
255
查看当前 慢查日志 状态: show?variables?like?‘%slow%‘;
#主要关注三个变量:
slow_query_log??#是否启用
slow_query_log_file??#日志文件
#慢查的时间阈值
show?variables?like?‘long_query_time‘...
分类:
数据库 时间:
2015-10-15 20:46:38
阅读次数:
186
1. Global & Dynamic example:slow_query_log ?? 显示该变量的值: 当前设置为OFF ?? 在一个session中设置该Global &Dynamic类型的变量: 可以看到,对于global类型的变量必需通过global关键字来设置其值。 ...
分类:
数据库 时间:
2015-10-15 16:42:40
阅读次数:
259
copy from http://postgresql.nabble.com/Slow-count-again-td3206177.htmlI know that there haven been many discussions on the slowness of count(*) evenwh...
分类:
其他好文 时间:
2015-10-13 17:08:18
阅读次数:
273