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).
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["This command imports data into a DBCluster custom resource from an SQL dump file located in object storage."],["The command `gdcloud database import sql` is used for importing data, requiring the cluster name and URI of the SQL dump file."],["An example demonstrates importing data from \"myfile.dmp\" in the \"mybucket\" bucket into the \"postgres-db\" DBCluster."],["An optional flag, `--database`, allows specifying the target database name for PostgreSQL imports."]]],[]]