← Cloud SQL310 / 640
easygcloud

Create a new database inside an existing Cloud SQL instance

command

gcloud sql databases create DB_NAME --instance INSTANCE

also accepted

gcloud sql databases create

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud SQL category.

gcloudsqldatabasescreateDB_NAME--instanceINSTANCE
FlagPurpose
--instanceBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →