zoukankan      html  css  js  c++  java
  • mysql相关参数解读

    mysql> show processlist;
    +----+------+-----------------+------+---------+------+-------+------------------+
    | Id | User | Host            | db   | Command | Time | State | Info             |
    +----+------+-----------------+------+---------+------+-------+------------------+
    |  2 | root | localhost:58548 | NULL | Query   |    0 | NULL  | show processlist |
    |  3 | root | localhost:58555 | NULL | Sleep   |  542 |       | NULL             |
    +----+------+-----------------+------+---------+------+-------+------------------+
    2 rows in set (0.00 sec)
    
    mysql> show global status like '%connect%';
    +--------------------------+-------+
    | Variable_name            | Value |
    +--------------------------+-------+
    | Aborted_connects         | 6     |
    | Connections              | 10    |
    | Max_used_connections     | 3     |
    | Ssl_client_connects      | 0     |
    | Ssl_connect_renegotiates | 0     |
    | Ssl_finished_connects    | 0     |
    | Threads_connected        | 2     |
    +--------------------------+-------+
    7 rows in set (0.00 sec)
    
    mysql>

    通过命令show processlist查看到的记录数据(上述命令为2条)与show global status like '%connect%';查看到的Threads_connected=2是一致的.

  • 相关阅读:
    185. [USACO Oct08] 挖水井
    JavaEE Tutorials (9)
    vjudge A
    HDU 2089 不要62
    国庆 day 2 下午
    国庆 day 2 上午
    国庆 day 1 下午
    P2899 [USACO08JAN]手机网络Cell Phone Network
    洛谷 P1690 贪婪的Copy
    洛谷 P2209 [USACO13OPEN]燃油经济性Fuel Economy
  • 原文地址:https://www.cnblogs.com/arcer/p/5559840.html
Copyright © 2011-2022 走看看