IMPORT DATABASE CONFIGURATION
Description
The IMPORT DATABASE CONFIGURATION syntax is used to import a database from the configuration in YAML.
Syntax
ImportDatabaseConfiguration ::=
'IMPORT' 'DATABASE' 'CONFIGURATION' 'FROM' 'FILE' filePath
filePath ::=
stringSupplement
- When a database with the same name already exists in the metadata, it cannot be imported;
- When
databaseNamein YAML is empty, it cannot be imported; - When
dataSourcesin YAML is empty, only empty database will be imported.
Example
IMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config_sharding_db.yaml";Reserved word
IMPORT, DATABASE, CONFIGURATION, FROM, FILE