查看MySQL数据库地址、端口、服务器属性命令

查看数据库地址:

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

查看数据库端口:

show variables like 'port' ;  

查看服务器属性:

show variables; 

 

posted @ 2020-04-15 17:47  东耳听风  阅读(11113)  评论(0编辑  收藏  举报