How to check the ip address connected to mysql

Reference: https://www.gxlcms.com/mysql-380778.html

 

The most intuitive way:

select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_43343144/article/details/112341728