0
点赞
收藏
分享

微信扫一扫

[MySQL]如何修改MySQL8.0端口(centos 7)


nano /etc/my.cnf

[mysqld]
port=12345

添加以上port的设置

运行服务:

systemctl restart mysqld.service

再检查下端口:

netstat -nltp

发现mysql监听两个端口:12345 33060.这是应为MySQL5.7.12 之后新增了X plugin。这个插件默认是启用的,可以在配置配置文件/etc/my.cnf 添加mysqlx=0关闭X plugin。 也可以在启动时指定 --mysqlx=0 或 --skip-mysqlx 来禁用X插件。

参考: ​​https://www.2cto.com/net/201812/788823.html​​

举报

相关推荐

centOS 安装MySQL8.0

centos7.X搭建mysql8.0服务

Mac修改Mysql8.0密码

MySQL8.0修改默认密码

0 条评论