File: //snap/google-cloud-cli/current/help/man/man1/gcloud_sql_instances_import.1
.TH "GCLOUD_SQL_INSTANCES_IMPORT" 1
.SH "NAME"
.HP
gcloud sql instances import \- imports data into a Cloud SQL instance from Google Cloud Storage
.SH "SYNOPSIS"
.HP
\f5gcloud sql instances import\fR \fIINSTANCE\fR \fIURI\fR [\fB\-\-async\fR] [\fB\-\-database\fR=\fIDATABASE\fR,\ \fB\-d\fR\ \fIDATABASE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(DEPRECATED)\fR Imports data into a Cloud SQL instance from Google Cloud
Storage.
This command is deprecated and will be removed in version 205.0.0. Use \f5gcloud
sql import sql\fR instead.
Note: authorization is required. For more information on importing data into
Google Cloud SQL see https://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
https://cloud.google.com/sql/docs/mysql/import\-export/creating\-sqldump\-csv
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINSTANCE\fR
Cloud SQL instance ID.
.TP 2m
\fIURI\fR
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.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR, \fB\-d\fR \fIDATABASE\fR
Database to which the import is made. The database needs to be created before
importing. If not set, it is assumed that the database is specified in the file
to be imported. If your SQL dump file includes a database statement, it will
override the database set in this flag.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha sql instances import
.RE
.RS 2m
$ gcloud beta sql instances import
.RE