vi /etc/my.cnf 加上:port = 3306 /bin/systemctl restart mysqld.service 转载于:https://www.cnblogs.com/manthilam/p/4520164.html