我已经在 Google Compute Engine 实例上安装了 MySQL 8.0。我想按照这个文档从外部授予远程访问权限。但是,从 /etc/mysql/ 打开 my.conf 后,文件中没有关于 bind-address 的行
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
如何找到要修改的绑定地址?感谢!
我已经在 Google Compute Engine 实例上安装了 MySQL 8.0。我想按照这个文档从外部授予远程访问权限。但是,从 /etc/mysql/ 打开 my.conf 后,文件中没有关于 bind-address 的行
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
如何找到要修改的绑定地址?感谢!
看起来在其他指令中可以找到附加配置:
!includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mysql.conf.d/
对于 ubuntu,您正在寻找的大部分设置现在都可以在“/etc/mysql/mysql.conf.d/mysqld.cnf”中找到
我已在内部通知文档团队更新文档。
Instance-dev@ubuntu123:/etc/mysql$ sudo grep -rnw 'bind-address' /etc/mysql
/etc/mysql/mysql.conf.d/mysqld.cnf:43:bind-address = 127.0.0.1