MySQL queries which IPs are connected to the database

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)

Guess you like

Origin blog.csdn.net/weixin_46627652/article/details/131766621
Recommended