show processlist;
 
select host from information_schema.processlist;
 
查看那台机器及连接数
select host, current_connections from sys.host_summary;
(sys.host_summary此视图在5.7以及之后版本才有)
 
 
select substring_index(host,":",1),count(*) as conn from information_schema.processlist group by substring_index(host,":",1);

 

相关文章:

  • 2021-12-07
  • 2021-11-06
  • 2021-11-23
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2021-12-03
  • 2022-12-23
  • 2021-11-06
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案