status
select version()
show global variables like ‘port‘
MySQL 显示版本、端口、状态
原文:http://www.cnblogs.com/ClassNotFoundException/p/6259578.html