查看mysql的版本和端口号

查看版本:select version();  

查看端口号:show global variables like 'port'; 

原文地址:https://www.cnblogs.com/Eilen/p/7063418.html