参考:https://blog.csdn.net/shumeigang/article/details/103902459
mysql> show global variables like ‘port’; 是0
原因是我的my.cnf有话:
skip-network
或
注释掉,然后重新启动下数据库,运行netstat -an|grep 3306 就可以看到了
05-09
2890
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
参考:https://blog.csdn.net/shumeigang/article/details/103902459
mysql> show global variables like ‘port’; 是0
原因是我的my.cnf有话:
skip-network
或
注释掉,然后重新启动下数据库,运行netstat -an|grep 3306 就可以看到了