IMPORT DATABASE CONFIGURATION
Description
The IMPORT DATABASE CONFIGURATION
syntax is used to import YAML
configuration to specified database.
Syntax
Grammar Railroad diagram
ExportDatabaseConfiguration ::=
'IMPORT' 'DATABASE' 'CONFIGURATION' 'FROM' 'FILE' filePath
filePath ::=
string
Supplement
When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted.The
IMPORT DATABASE CONFIGURATION
syntax only supports import operations on empty database.
Example
- Import the configuration in
YAML
into the specified database
IMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config_sharding_db.yaml";
- Import the configuration in
YAML
into the current database
IMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config_sharding_db.yaml";
Reserved word
IMPORT
, DATABASE
, CONFIGURATION
, FROM
, FILE
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .