可以使用以下命令查看某个库的连接数量:
show status where `variable_name` = 'Threads_connected' and `variable_value` is not null;
其中,将 variable_name
替换为该库的名称即可。这样就可以得到当前该库的连接数量了。
可以使用以下命令查看某个库的连接数量:
show status where `variable_name` = 'Threads_connected' and `variable_value` is not null;
其中,将 variable_name
替换为该库的名称即可。这样就可以得到当前该库的连接数量了。
本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=6343
还没有评论,快来说点什么吧~