MySQL查询有哪些ip连接数据库

select host as ip from information_schema.processlist;
mysql> select host as ip from information_schema.processlist;
+--------------------+
| ip                 |
+--------------------+
| 10.10.10.100:41483 |
| 10.10.10.100:51887 |
| localhost          |
+--------------------+
3 rows in set (0.00 sec)

猜你喜欢

转载自blog.csdn.net/weixin_46627652/article/details/131766621
今日推荐