mysql bind-address 与 mysqlx-bind-address 设置以允许远程连接

0x1*_*van 20 mysql

我在 mysql 8.0 配置文件中发现了一个新的设置变量(mysqlx-bind-address)

我应该将其设置为:0.0.0.0 并带有绑定地址以允许远程连接吗?

例子:

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 0.0.0.0
mysqlx-bind-address     = 0.0.0.0
Run Code Online (Sandbox Code Playgroud)

med*_*kri 16

设置bind-adress已经足够了mysqlx-bind-address,如果X plugin 你想了解更多,X plugin你可以去这里