mysql查看主机ip地址的方法
1.首先,在命令行中,启动mysql服务;
net start mysql
2.mysql服务启动后,使用命令进行mysql;
mysql -u root -p
3.进入mysql数据库后,使用以下便可命令查看mysql的ip地址;
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;
本文来源:https://www.yuntue.com/post/57727.html | 云服务器网,转载请注明出处!

微信扫一扫打赏
支付宝扫一扫打赏