Slow down. The more you understand, the less you have to memorize. Don'tjust 'read. Stop and think. When the book asks you a question, don'tjust skip ...
分类:
编程语言 时间:
2016-06-30 12:42:46
阅读次数:
139
mysql 查看满日志命令: show variables like '%quer%'; 此时显示的10秒的意思是 如果sql 语句的执行时间超过10秒 会记录下来。 slow_query_log 是off 是没有开启的。 此时 使用命令 ,开启满日志: set global slow_query_ ...
分类:
数据库 时间:
2016-06-29 13:04:02
阅读次数:
223
show()显示隐藏的被选元素:show() 适用于通过 jQuery 方法和 CSS 中 display:none type='hidden' 隐藏的元素(不适用于通过 visibility:hidden 隐藏的元素): hide() 方法隐藏被选元素: 可能的值: 毫秒 "slow" "fast ...
分类:
Web程序 时间:
2016-06-27 09:04:03
阅读次数:
134
如果你是在IOS平台,强烈建议把PlayerSetting里面的Script Call Optimization设置成Slow and Safe,这样比如遇到空指针 或者 数组越界这样的错误,程序是不会直接闪退的。(Android上不用设置)这里我创造一个数组越界的错误。 void Start () ...
分类:
移动开发 时间:
2016-06-24 18:54:59
阅读次数:
153
mysql的配置文件 打开mysql执行命令 long_query_time --是指执行超过多久的sql会被log下来,默认10slog-slow-queries --将查询返回较慢的语句进行记录 log-queries-not-using-indexes --会记录所有没有用上索引全表扫描的语句 ...
分类:
数据库 时间:
2016-06-24 14:33:39
阅读次数:
198
慢查询日志: 打开慢查询日志: set global slow_query_log=on; 输出格式定义:log_output: [file|table] FILE: set global log_output='FILE';TABLE: 1.set global log_output='TABLE ...
分类:
其他好文 时间:
2016-06-18 14:04:19
阅读次数:
154
#mysql_slow.confinput{file{type=>"mysql-slow"path=>"/var/log/mysql_slow_log.log"}}filter{if[type]=="mysql-slow"{#grep{#ignore‘#Time:‘asweusetheSETtimestamptogetthetime.grepisactually#onthedeprecationcyclesoneedtofigureoutanalternativetothis#match=>..
分类:
数据库 时间:
2016-06-16 13:29:21
阅读次数:
356
导入注意点:使用phpmyadmin或navicat之类的工具的导入功能还是会相当慢,可以直接使用mysql进行导入导入命令如下:mysql> -uroot -psupidea jb51.net<E:\www.jb51.net.sql便可以了说明:mysql> -umysql用户名 -pmysql密 ...
分类:
数据库 时间:
2016-06-13 11:09:03
阅读次数:
185
/etc/my.cnfmysql配置文件interactive_timeout=8-----连接时间,超时断开wait_timeout=8long_query_time=1log_slow_queries=/data/mysql/slow.log----打开慢查询日志
分类:
数据库 时间:
2016-06-08 17:20:58
阅读次数:
158
leetcode上有一个分享的解法很清晰: Alogrithm Description: Step 1: Determine whether there is a cycle 1.1) Using a slow pointer that move forward 1 step each time 1 ...
分类:
其他好文 时间:
2016-06-07 16:23:08
阅读次数:
131