首页 > 数据库技术 > 详细

mysql相关参数解读

时间:2016-06-05 00:54:39      阅读:151      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!