实例说明:主库IP:0.0.0.43从库IP:0.0.0.194一、配置主库(0.0.0.43)1、修改主数据库/etc/my.cnf,注意位置,在mysqld下面,不要添加到safe下面[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
old_passwords=1
max_connections=10000
join_..
分类:
数据库 时间:
2015-05-22 19:22:01
阅读次数:
233
mysql的最大连接数默认是100, 这个数值对于并发连接很多的数据库应用是远远不够的,当连接请求大于默认连接数后,就会出现无法连接数据库的错误,因此我们需要把它适当调大一些设置新的MySQL最大连接数为200:MySQL> set GLOBAL max_connections=200 查看max_...
分类:
数据库 时间:
2015-05-22 11:19:54
阅读次数:
149
NAMEnc - arbitrary TCP and UDP connections and listensSYNOPSISnc [-46DdhklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w...
分类:
系统相关 时间:
2015-05-21 16:51:07
阅读次数:
147
1. INFOinfo指令返回服务器相关信息,包括:server: General information about the Redis serverclients: Client connections sectionmemory: Memory consumption related inf....
分类:
其他好文 时间:
2015-05-20 18:18:12
阅读次数:
159
这几天工作当中,在使用mysql数据库的时候,碰到了too many connections的问题和timeout expired的问题,经过尝试,稍作总结,希望能够帮到需要的朋友;在测试当中发现,1:too many connections的错误会在max pool size的值大于max_con...
分类:
数据库 时间:
2015-05-20 17:58:42
阅读次数:
199
一、优化概述 二、查询与索引优化分析 1性能瓶颈定位 Show命令 慢查询日志 explain分析查询 profiling分析查询 ? 2索引及查询优化 三、配置优化 1) ? ? ?max_connections 2) ? ? ?back_log 3) ? ? ?int...
分类:
数据库 时间:
2015-05-20 16:33:20
阅读次数:
300
官网给出解决办法:http://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/
1、charles->Help -> Install Cahrles CA SSL Certificatein iOS Simulators (charles 3.9.3以上)
2、重启...
分类:
移动开发 时间:
2015-05-20 13:16:54
阅读次数:
163
Step 1.Make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it.ssh -N -g -D 1080 user@doma...
分类:
系统相关 时间:
2015-05-19 18:16:14
阅读次数:
270
使用 MySQL 数据库的站点,当访问连接数过多时,就会出现 "Too many connections" 的错误。出现这种错误有两种情况,一种是网站访问量实在太大,服务器已经负担不起,此时就应该考虑负载均衡或者其它减少服务器压...
分类:
数据库 时间:
2015-05-19 13:16:48
阅读次数:
153
WIN:切换到mongod.exe目录下1 mongod -dbpath "D:\MongoDB\data\db"当看到这行“waiting for connections on port 27017”时,到浏览器中输入地址“localhost:27017”,ok新开一个 再BIN下,执行1 mon...
分类:
数据库 时间:
2015-05-18 16:03:40
阅读次数:
156