1)/etc/init.d/mysqld stop
2)在/etc/my.cnf 中 加 bind-address = 127.0.0.1
[mysqld]
bind-address = 127.0.0.1
3)/etc/init.d/mysqld start
4)netstat -nap|grep 3306
参考:
https://www.bt.cn/bbs/thread-3434-1-1.html
https://www.oppblog.com/archives/2625
[
本帖最后由 linda 于 2021-12-29 11:00 编辑 ]