gdcloud database import sql - Import data into a DBCluster custom resource from an SQL dump file in object storage.
概要
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"]],["上次更新時間: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."]]],[]]