目录 一、优化概述 二、查询与索引优化分析 1性能瓶颈定位 Show命令 慢查询日志 explain分析查询 profiling分析查询 ? 2索引及查询优化 三、配置优化 ?1) ? ? ?max_connections ?2) ? ? ?back_log ?3) ...
分类:
数据库 时间:
2014-11-20 12:17:54
阅读次数:
374
一、windows下
直接修改配置文件my.ini,然后重启MySQL服务。
二、Linux CentOS6.5下
1、登录mysql:
[root@slave4 ~]# mysql -u root -p
2、查看当前连接数: mysql> show variables like 'max_connections';
+-----------------+-------+
| V...
分类:
数据库 时间:
2014-11-19 18:40:05
阅读次数:
233
[pg@h1 ~]$ vacuumdb --freeze template0
vacuumdb: could not connect to database template0: FATAL: database "template0" is not currently accepting connections
[pg@h1 ~]$ psql template0
psql: FATAL: da...
分类:
其他好文 时间:
2014-11-19 01:58:54
阅读次数:
234
题目大意:
每次q后计算失败和成功的次数,最后输出成功的和失败的次数。
解题思路:
并查集,死了很多次在输入上面,输入还是需要一些技巧的。...
分类:
Web程序 时间:
2014-11-16 17:25:54
阅读次数:
185
1.2014-11-1419:40:20.4637740TRACEkeystoneFile"/usr/lib/python2.7/dist-packages/MySQLdb/connections.py",line187,in__init__2014-11-1419:40:20.4637740TRACEkeystonesuper(Connection,self).__init__(*args,**kwargs2)2014-11-1419:40:20.4637740TRACEkeystoneOperationa..
分类:
系统相关 时间:
2014-11-16 02:00:30
阅读次数:
304
PortIn a manner similar to processes, Ports should be considered. Ports are a datatype that encompasses all kinds of connections and sockets opened to the outside world: TCP sockets, UDP sockets, SCTP...
分类:
其他好文 时间:
2014-11-15 12:56:20
阅读次数:
295
SHUTDOWN有几个参数可以使用:
SHUTDOWN NORMAL:NORMAL也是默认的子句,执行的条件是
No new connections are allowed after the statement is issued.
Before the database is shut down, the database waits for all currently connec...
分类:
其他好文 时间:
2014-11-13 09:24:59
阅读次数:
234
http://www.oschina.net/question/558677_66703com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of conn...
分类:
数据库 时间:
2014-11-09 09:50:48
阅读次数:
181
1.下载fiddler,尽量到官方网站找最新的版本我这里也放了一个:http://files.cnblogs.com/xiaokang088/fiddler4setup.zip2. 打开Fiddler后Tools > Fiddler Options > Connections.勾选Allow rem...
分类:
移动开发 时间:
2014-11-07 12:53:23
阅读次数:
182
题目:hdoj 2874 Connections between cities
题意:战争过后,一些城市毁坏了。意思图不连通,让你求任意两点的距离、
分析:很明显求LCA
但是图不连通,所以我们Tarjan的时候要对每个点进行。然后标记即可。
另外,这个题目卡vector,看来以后要学着用数组模拟邻接表了。
AC代码:
#include
#include
#...
分类:
其他好文 时间:
2014-11-06 17:30:51
阅读次数:
189