如何查看连接mysql的ip地址

select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;

你可能感兴趣的:(如何查看连接mysql的ip地址)