查看mysql被那些ip地址连接

查看mysql被那些ip地址连接

 

mysql> select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;
+----------------+----------+
| ip             | count(*) |
+----------------+----------+
| 113.53.126.19 |        6 |
+----------------+----------+
1 row in set

mysql> 
mysql> 

 

 

####################

posted @ 2022-01-16 19:59  西北逍遥  阅读(1146)  评论(0编辑  收藏  举报