mysql - 授予对安装在 Google Compute Engine 上的 mysql 服务器的远程访问权限

标签 mysql google-compute-engine

我已按照 google 提供的所有说明进行操作,但不知何故,我无法从我的桌面访问安装在 Google Compute Engine 上的远程 mysql 数据库。

我做了以下事情

a) 创建用户并授予他远程访问权限

enter image description here

b) 在防火墙中允许端口 enter image description here

c) 注释掉 bind-address enter image description here

但还是报错

enter image description here

当我尝试从我的远程 Windows 客户端连接时。

我在哪里缺少必要的步骤???请帮助...

最佳答案

确保在 Cloud Console 中的项目级别允许 TCP 流量从您的位置到有问题的 VM 到端口 3306或使用 CLI:

gcloud compute 防火墙规则列表

更多关于在官方文档中设置防火墙: https://cloud.google.com/compute/docs/vpc/firewalls

关于mysql - 授予对安装在 Google Compute Engine 上的 mysql 服务器的远程访问权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44503743/

相关文章:

kubernetes - Ingress 报告后端不健康

google-compute-engine - 谷歌云引擎。权限被拒绝(公钥、gssapi-keyex、gssapi-with-mic)

mysql - 我的 ClientDataSet.ApplyUpdates 没有发布到我的 MySQL 数据库表?

php - 将旧的 mySQL/RH 迁移到新的 mySQL/Ubuntu

php - 不使用 WordPress 中的 dbDelta() 创建触发器

mysql - 插入自动递增字段

php - 我如何让 mysql 排名朝着正确的方向发展

ssh - 无法在浏览器中通过 SSH 连接到 Google Compute Engine 实例

docker - 为什么在容器外部无法访问在Compute Engine中运行的Docker实例?

linux - 运行 hadoop 集群时在 Google Cloud Platform 上获取 'sudo: unknown user: hadoop' 和 'sudo: unable to initialize policy plugin error'