码迷,mamicode.com
首页 > 数据库 > 详细

mysql相关参数解读

时间:2016-06-05 00:56:29      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

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是一致的.

mysql相关参数解读

标签:

原文地址:http://www.cnblogs.com/arcer/p/5559840.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!