简体   繁体   English

将Google Cloud SQL连接到Android Studio项目

[英]Connect google cloud sql to android studio project

I'm creating a google cloud mysql and I want to connect the data into my android studio project. 我正在创建一个Google Cloud mysql,我想将数据连接到我的android studio项目中。 After I browser all of the documents from google cloud I still can't figure out how to do it. 浏览完Google云中的所有文档后,我仍然不知道该怎么做。

The google platform supporter said using google endpoint, can anybody specify the way of connection. 谷歌平台支持者说,使用谷歌端点,任何人都可以指定连接方式。

Please help! 请帮忙! Thanks! 谢谢!

You can use public ips directly listed in your mysql instances page on https://console.cloud.google.com/sql/instances?project=[your-project-name] You will have to whitelist your IP to do this. 您可以使用直接在mysql实例页面上列出的公共ips, 网址为https://console.cloud.google.com/sql/instances?project=[your-project-name] 。为此,您必须将IP列入白名单。

Otherwise you can also try installing proxies, which can help you connect https://cloud.google.com/sql/docs/mysql/connect-external-app#proxy 否则,您也可以尝试安装代理,以帮助您连接https://cloud.google.com/sql/docs/mysql/connect-external-app#proxy

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

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