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)

你可能感兴趣的:(数据库,mysql)