How to create database on google cloud sql instance

前端 未结 2 1255
抹茶落季
抹茶落季 2021-02-04 18:43

How can I use Cloud SQL to create a database? When I use MySQL, I could easily run a sql script to create them on phpMyAdmin.

I found a site that advertises that it\'s p

2条回答
  •  遇见更好的自我
    2021-02-04 19:03

    As @Juan Enrique Muñoz Zolotoochin says, singe February 2015 it is now possible to manage databases using the new Developer Console, making my original answer (below) obsolete.

    New Answer

    Open your project, expand Storage and then Cloud SQL, switch to the DATABASES tab. From there you can use the New database button to create a new database. You can also delete databases from there.

    Original Answer (Now obsolete)

    This has not been implemented in the new Cloud Console yet, you have to use the old api's console for this.

    To get to it first go to the Cloud SQL section of your project in the new console (where you are). Then in the bottom right there is a link "Return to original console". If you click on this you get to a slightly different control panel for Cloud SQL.

    If you then click on the instance you want to create your database on, you will get another screen that has a "SQL Prompt" tab, click on that and then you can execute raw SQL commands against it.

    UPDATE: To get to the old APIs console and prevent the redirect taking you to the new console use this link: https://code.google.com/apis/console/b/0/?noredirect

提交回复
热议问题