为什么mysql启动了,但访问端口没有打开

默认分类 未结 1 1512
_____丶浪人
_____丶浪人 2023-03-22 05:17
相关标签:
1条回答
  • 2023-03-22 06:06

    看看mysql的配置文件my.cnf,如果在那里设置了--skip-networking这个参数的话,mysql启动起来是不***端口的。

    解决方法是:注释掉配置文件中的bind_address。

    ##Insteadofskip-networkingthedefaultisnowtolistenonlyon#localhostwhichismorecompatibleandisnotlesssecure.#bind-address=127.0.0.1

    0 讨论(0)
提交回复