小编Pra*_*thi的帖子

设置云SQL代理后无法配置mysql数据库

根据此链接配置的云SQL代理 https://cloud.google.com/sql/docs/mysql/connect-admin-proxy

启用了Cloud SQL Admin API。同时使用以下命令连接到mysql时出现以下错误

[prudvee143@centos-2 ~]$ mysql -h 127.0.0.1 -u root -p
Enter password: 
2018/12/11 02:21:34 New connection for "bookshelfs-221608:us-central1:test"
2018/12/11 02:21:34 couldn't connect to "bookshelfs-221608:us-central1:test": ensure that the account has access to "bookshelfs-221608:us-central1:test" (and make sure there's no typo in that name). Error during createEphemeral for bookshelfs-221608:us-central1:test: googleapi: Error 403: Access Not Configured. Cloud SQL Admin API has not been used in project 317520816688 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/sqladmin.googleapis.com/overview?project=317520816688 then retry. If …
Run Code Online (Sandbox Code Playgroud)

mysql google-cloud-sql google-cloud-platform

2
推荐指数
1
解决办法
846
查看次数