查看服务器所有端口:
netstat -ntlp
查看mysql端口
# mysql -u root -p
mysql> show global variables like 'port';
修改mysql端口
/etc/my.cnf