慢查询日志: 打开慢查询日志: 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
Specifies the kind of exception handling used by the compiler, when to optimize away exception checks, and whether to destroy C++ objects that go out ... ...
分类:
其他好文 时间:
2016-06-16 09:16:52
阅读次数:
130
导入注意点:使用phpmyadmin或navicat之类的工具的导入功能还是会相当慢,可以直接使用mysql进行导入导入命令如下:mysql> -uroot -psupidea jb51.net<E:\www.jb51.net.sql便可以了说明:mysql> -umysql用户名 -pmysql密 ...
分类:
数据库 时间:
2016-06-13 11:09:03
阅读次数:
185
(依据于0.10.0.0版本) 这个接口的唯一实现类就是NetworkClient,它被用于实现Kafka的consumer和producer. 这个接口实际上抽象出来了Kafka client与网络交互的方式。 为了对它的API有清楚的认识,先要了解下Kafka protocol所要求的clien ...
分类:
Web程序 时间:
2016-06-09 17:20:19
阅读次数:
2791
/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
dubbo架构图如下所示: 节点角色说明: Provider: 暴露服务的服务提供方。 Consumer: 调用远程服务的服务消费方。 Registry: 服务注册与发现的注册中心。 Monitor: 统计服务的调用次调和调用时间的监控中心。 Container: 服务运行容器。 这点我觉得非常好, ...
分类:
其他好文 时间:
2016-06-08 12:11:20
阅读次数:
168
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
本页包含内容: 委托(Delegation) 错误处理(Error Handling) 键值观察(Key-Value Observing) Target-Action模式(Target-Action) 类型匹配与统一规范(Introspection) API 可用性 委托(Delegation) 错 ...
分类:
编程语言 时间:
2016-06-06 11:48:43
阅读次数:
248