mysql "too many connections"
来源:互联网 发布:网络安全隐患 编辑:程序博客网 时间:2024/05/16 14:51
部分开发者可能遇到过这个问题,其实比较简单,首先您得看看到底有多少connections以及每个的状态。
SHOW PROCESSLIST;
然后你忽然发现大部分进程都在sleep,睡得时间还挺长。那就让他们少睡会吧。
[mysqld]interactive_timeout=180wait_timeout=180
加到你的配置文件中,重启mysql。默认28800是八小时,现在改到3分钟。这个你不能通过
SET interactive_timeout=180
生效。这是因为这个玩意儿是对一个session设置的,不是全局生效的。
做到这一步如果还是不放心,那就把连接数也调大点儿
[mysqld]max_connections=1024
如果不想重启mysql,以下命令是可行的,但是重启mysql后会失效。
SET GLOBAL max_connections=1024
以上。
0 0
- mysql: Too many connections
- mysql Too many connections
- mysql Too many connections
- mysql "too many connections"
- Mysql too many connections
- MySQL too many connections
- (转)MySQL: Too many connections
- Mysql Too many connections问题
- MYSQL错误Too many connections
- mysql too many connections解决
- mysql Too many connections 异常
- Mysql too many connections解决办法
- MySql Too many connections solution
- MySQL 1040 Too many connections
- MySQL Too many connections 解决方案
- 【Mysql】too many connections 错误
- Mysql中too many connections问题
- PHP + Mysql 的Too many connections
- WebStorm开发工具设置React Native代码智能提醒
- android - RelativeLayout无法填充ScrollView
- Android开发者选项-GPU显示配置文件无效
- 基于Spring Websocket+SockJS实现的长连接请求
- jq判断checked
- mysql "too many connections"
- git pull出错解决
- 如何通过CRT进行二次跳转
- mysql创建索引
- 微信开发之ngrok环境搭建
- Redux 入门教程(一):基本用法
- Java开发常用知识
- 读《拖延心理学》的总结和感想
- U盘安装WinXP