Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
NOME
gdcloud database import sql - Importa i dati in una risorsa personalizzata DBCluster da un file di dump SQL nell'object storage.
SINOSSI
gdcloud database import sql CLUSTER_NAME URI [flags]
ESEMPI
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
FLAG FACOLTATIVI
--database string Database name for import (PostgreSQL Only).
GDCLOUD WIDE FLAGS
Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-31 UTC."],[[["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."]]],[]]