怎么查看服务器mysql端口

要查看服务器mysql端口,我们需要使用以下命令:

netstat -anp|grep mysql