码迷,mamicode.com
首页 > 其他好文 > 详细

显示当前的连接状况

时间:2020-01-31 10:27:05      阅读:74      评论:0      收藏:0      [点我收藏+]

标签:running   nec   color   reads   cache   created   数据库   div   code   

show status like Threads%‘;

Threads_cached    5  (当前线程缓存中有多少空闲线程)
Threads_connected    127 (当前连接的线程)
Threads_created    7295 (从数据库启动,已经创建过的线程)
Threads_running    1 (当前活动线程)

用来调查访问数据库出错的问题

 

显示当前的连接状况

标签:running   nec   color   reads   cache   created   数据库   div   code   

原文地址:https://www.cnblogs.com/studywithallofyou/p/12244628.html

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