gcloud_beta_sql_instances_import (1)
NAME
- gcloud beta sql instances import - imports data into a Cloud SQL instance from Google Cloud Storage
SYNOPSIS
-
gcloud beta sql instances import INSTANCE URI [--async] [--database=DATABASE, -d DATABASE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) (DEPRECATED) Imports data into a Cloud SQL instance from
This command is deprecated and will be removed in version 205.0.0. Use gcloud sql import sql instead.
Note: authorization is required. For more information on importing data into Google Cloud SQL see cloud.google.com/sql/docs/import-export/importing
Cloud SQL supports importing CSV files and SQL dump files from both MySQL and PostgreSQL. For more information on how to create these export formats, see cloud.google.com/sql/docs/mysql/import-export/creating-sqldump-csv
POSITIONAL ARGUMENTS
-
- INSTANCE
-
Cloud SQL instance ID.
- URI
-
Path to the MySQL dump file in Google Cloud Storage from which the import is
made. The URI is in the form gs://bucketName/fileName. Compressed gzip files
(.gz) are also supported.
FLAGS
-
- --async
-
Do not wait for the operation to complete.
- --database=DATABASE, -d DATABASE
-
The database (for example, guestbook) to which the import is made. If not set,
it is assumed that the database is specified in the file to be imported.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud sql instances import $ gcloud alpha sql instances import