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