1.查看监听端口:
netstat -lntup |  grep mysql
2.[root@xin Desktop]# ss -lnt | grep 3306
LISTEN     0      50                        *:3306