简体   繁体   English

我可以从Android应用程序创建云SQL MySQL实例吗

[英]Can I create cloud SQL MySQL instance from Android Application

I want a new Cloud SQL instance for each user. 我想要每个用户一个新的Cloud SQL实例。 Is it possible to create a new Cloud SQL instance via an http request or any other means. 是否可以通过http请求或任何其他方式创建新的Cloud SQL实例。 Right now I am creating it using Google Cloud Platform console. 现在,我正在使用Google Cloud Platform控制台创建它。

There is a better call available for the Cloud SQL API which is insert that basically creates a new instance. Cloud SQL API有一个更好的调用,该调用基本上是创建一个新实例的插入

You will probably also want to update the root password and get the IPv4 address of the instance. 您可能还希望更新root密码并获取实例的IPv4地址。 Instructions on creating a Cloud SQL instance can be found here . 有关创建Cloud SQL实例的说明,请参见此处 Go to the CURL(2ND GEN/1ST GEN) section so that you could see what kind of information you need to include in the POST request that you can send from your Android application. 转到CURL(2ND GEN / 1ST GEN)部分,以便您可以查看需要从Android应用程序发送的POST请求中包括哪些信息。

The Cloud SQL API has a clone call which will make a new instance that is a clone of an existing instance. Cloud SQL API有一个克隆调用,它将创建一个新实例,该实例是现有实例的克隆。

See https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/clone 参见https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/clone

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

相关问题 我无法将数据从Mysql数据库检索到Android应用程序 - I can't retrieve data from Mysql database to Android application 如何从laravel Web应用程序创建Android应用程序? - How can I create a android app from laravel web application? 如何从我的Android应用程序连接到SQL Server? - How can i connect to sql server from my android application? 我可以创建一个Android应用程序作为模板吗? - Can i create an android application as template? 如何创建多语言Android应用程序? - How can I create a multilingual android application? 使用Firebase云消息传递(适用于Android)时,我可以创建子主题吗? - Can I create subtopics when using Firebase Cloud Messaging (for Android)? 如何创建可以作为APK或从市场安装的Android应用程序插件/扩展? - How can I create Android Application plugins/extensions that can be installed as an APK or from market? Android应用程序:我可以使用iOS sqlite吗? 如果没有,如何从云中的数据库(Parse.com)创建本地数据库? - Android App: can I use iOS sqlite? If not, how do I create a local database from a database in the cloud (Parse.com)? Android应用程序-连接到Google Cloud SQL - Android Application - Connecting to Google Cloud SQL 无法将MySQL Workbench连接到Google Cloud SQL实例 - Unable to connect MySQL Workbench to Google Cloud SQL instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM