如何查看连接mysql的ip地址

参考:https://www.gxlcms.com/mysql-380778.html

最直观的办法:

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

猜你喜欢

转载自blog.csdn.net/weixin_43343144/article/details/112341728