数据库
首页 > 数据库> > 查看mysql被那些ip地址连接

查看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> 

 

 

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

标签:count,查看,ip,+----------------+----------+,地址,mysql
来源: https://www.cnblogs.com/herd/p/15811053.html