名称
gdcloud database import sql - 从对象存储空间中的 SQL 转储文件将数据导入到 DBCluster 自定义资源中。
摘要
gdcloud database import sql CLUSTER_NAME URI [flags]
示例
To import data from an SQL dump file "myfile.dmp" stored in bucket "mybucket" in the PostgreSQL DBCluster "postgres-db", run:
gdcloud database import sql postgres-db mybucket/myfile.dmp
可选标志
--database string Database name for import (PostgreSQL Only).
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD 全局标志
以下标志适用于所有命令:--configuration、--format、--help、--project、--quiet。
如需了解详情,请参阅 gdcloud CLI 参考概览页面。