max_connections 与 max_used_connections --ERROR 1040: Too many connections
2016-06-22 17:53
471 查看
mysql> show variables like 'max_connections'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | max_connections | 151 | +-----------------+-------+ 1 row in set (0.03 sec) mysql> show global status like 'max_used_connections'; +----------------------+-------+ | Variable_name | Value | +----------------------+-------+ | Max_used_connections | 1 | +----------------------+-------+ 1 row in set (0.19 sec) secureCRT在打开一个窗口 mysql -uroot -p 登陆 mysql> show global status like 'max_used_connections'; +----------------------+-------+ | Variable_name | Value | +----------------------+-------+ | Max_used_connections | 2 | +----------------------+-------+ 1 row in set (0.01 sec)
MySQL比较理想的最大连接数计算方式为:
1 | max_used_connections / max_connections * 100% ≈ 85% |
相关文章推荐
- 嵌入式系统通讯协议
- 计算机网络——TCP三次、四次握手详解
- iOS蓝牙编程
- 单片机 一位八段LED
- JavaScript中的垃圾收集机制
- Android开发中一进Activity就白屏和黑屏解决方法
- php文件上传
- 14. Longest Common Prefix
- 个人总结
- 关闭数据库
- KeyCode 对照表
- 加密
- git merge 和 git rebase 小结
- handler
- Python数据预处理:缺失值替换
- Java NIO 基本概念
- 正则表达式工具RegexBuddy使用教程(原创自Zjmainstay)
- Android中的网络技术基础用法
- 优化网站加载速度的一些方法
- jquery对象和DOM对象之前的关系和转化(资料来源于网上)