Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud database import sql - Import data into a DBCluster custom resource from an SQL dump file in object storage.
SYNOPSIS
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
OPTIONAL FLAGS
--database string Database name for import (PostgreSQL Only).
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 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,[]]