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

查看数据库地址:

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

查看数据库端口:

show variables like 'port' ;  

查看服务器属性:

show variables; 
原文地址:https://www.cnblogs.com/litstar/p/12706880.html