Available in VPC
Add a database to a Cloud DB for MySQL instance.
Syntax
The addCloudMysqlDatabaseList syntax is as follows:
./ncloud vmysql addCloudMysqlDatabaseList \
--cloudMysqlInstanceNo <instance-no> \
--cloudMysqlDatabaseNameList <database-name-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running addCloudMysqlDatabaseList.
Required options
The following options are required for addCloudMysqlDatabaseList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudMysqlInstanceNo |
String | Required | Cloud DB for MySQL instance number |
--cloudMysqlDatabaseNameList |
List | Required | List of database names to add
|
Common options
For information about the options common to all vmysql subcommands, see Cloud DB for MySQL (VPC) options.
Examples
If the request to add a database is successful, the specified database is added to the Cloud DB for MySQL instance.
Command
The command example is as follows:
./ncloud vmysql addCloudMysqlDatabaseList \
--cloudMysqlInstanceNo 12345678 \
--cloudMysqlDatabaseNameList mysql_test1 mysql_test2 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"addCloudMysqlDatabaseListResponse": {
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}