Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

addCloudMysqlDatabaseList

Prev Next

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
  • Enter 1-30 characters, including English letters, numbers, and special character - and _.
  • The string must begin with an English letter.
  • Up to 10 databases can be added at once.
  • You can enter multiple items separated by spaces. (e.g., --cloudMysqlDatabaseNameList mysql_test1 mysql_test2).

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"
  }
}