gdcloud database import sql CLUSTER_NAME URI [flags]
EXAMPLES
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-09-04 UTC。"],[[["\u003cp\u003eThis command imports data into a DBCluster custom resource from an SQL dump file located in object storage.\u003c/p\u003e\n"],["\u003cp\u003eThe command \u003ccode\u003egdcloud database import sql\u003c/code\u003e is used for importing data, requiring the cluster name and URI of the SQL dump file.\u003c/p\u003e\n"],["\u003cp\u003eAn example demonstrates importing data from "myfile.dmp" in the "mybucket" bucket into the "postgres-db" DBCluster.\u003c/p\u003e\n"],["\u003cp\u003eAn optional flag, \u003ccode\u003e--database\u003c/code\u003e, allows specifying the target database name for PostgreSQL imports.\u003c/p\u003e\n"]]],[],null,["# gdcloud database import sql\n\nNAME\n----\n\ngdcloud database import sql - Import data into a DBCluster custom resource from an SQL dump file in object storage.\n\nSYNOPSIS\n--------\n\n gdcloud database import sql CLUSTER_NAME URI [flags]\n\n### EXAMPLES\n\n To import data from an SQL dump file \"myfile.dmp\" stored in bucket \"mybucket\" in the PostgreSQL DBCluster \"postgres-db\", run:\n\n gdcloud database import sql postgres-db mybucket/myfile.dmp\n\n### OPTIONAL FLAGS\n\n --database string Database name for import (PostgreSQL Only).\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]