简体   繁体   English

Maria db远程访问

[英]Maria db remote access

I'm trying to remote access maria db on google compute engine. 我正在尝试远程访问谷歌计算引擎上的玛丽亚数据库。 After comment below line #bind-address = 127.0.0.1 在下面注释#bind-address = 127.0.0.1

and restart maria db, it still binds to 127.0.0.1:3306. 并重新启动maria db,它仍然绑定到127.0.0.1:3306。 The file that I edited is /etc/mysql/mariadb.conf.d/50-server.cnf 我编辑的文件是/etc/mysql/mariadb.conf.d/50-server.cnf

May anyone help me to set it up? 愿任何人帮我设置它吗?

You need to bind it to 0.0.0.0 to access it remotely. 您需要将其绑定到0.0.0.0以远程访问它。 Uncomment the bind-address field and change the value to 0.0.0.0 . 取消注释bind-address字段并将值更改为0.0.0.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM