zoukankan      html  css  js  c++  java
  • max_connections 与 max_used_connections --ERROR 1040: Too many connections

    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比较理想的最大连接数计算方式为:

  • 相关阅读:
    搭建Keil C51开发环境
    源码分析之Handler
    Android中的算法
    Android中的数据结构
    高级UI-UI绘制流程
    高级UI-Path和PathMeasure
    高级UI-画板Canvas
    高级UI-滤镜和颜色通道
    高级UI-高级渲染
    高级UI-画笔Paint
  • 原文地址:https://www.cnblogs.com/zengkefu/p/5608051.html
Copyright © 2011-2022 走看看