The IMPORT DATABASE CONFIGURATION
syntax is used to import YAML
configuration to specified database.
ExportDatabaseConfiguration ::=
'IMPORT' 'DATABASE' 'CONFIGURATION' 'FROM' 'FILE' filePath ('TO' databaseName)?
databaseName ::=
identifier
filePath ::=
string
When databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.
The IMPORT DATABASE CONFIGURATION
syntax only supports import operations on empty database.
YAML
into the specified databaseIMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config_sharding_db.yaml" TO sharding_db;
YAML
into the current databaseIMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config_sharding_db.yaml";
IMPORT
, DATABASE
, CONFIGURATION
, FROM
, FILE
, TO