Available in Classic
Getting started with Cloud DB for MySQL describes what you need to do to properly use Cloud DB for MySQL after checking the Cloud DB for MySQL user environment and supported specifications and fully understanding the overall usage quickstart and glossary. The following is the content dealt with in getting started with Cloud DB for MySQL:
- How to create an application server in the NAVER Cloud Platform console.
- How to test application server connection.
- How to create MySQL Servers from the NAVER Cloud Platform console.
- How to test MySQL Server connection.
If you completed the above, then you've completed the basic procedure for using Cloud DB for MySQL. Afterward, you can perform the following tasks for more efficient server management and operation:
- Event and notification (alarm) settings using NAVER Cloud Platform's Cloud Insight.
- Permissions management for using NAVER Cloud Platform's Sub Account.
- Storage of log files and backup files using NAVER Cloud Platform's Object Storage.
- Setting DB server read load balancing using NAVER Cloud Platform's Load Balancer.
The above tasks can be done from Cloud Insight, Sub Account, Object Storage, and Load Balancer after subscribing, rather than in Cloud DB for MySQL. They are not explained in detail in this guide. For detailed instructions, see Cloud Insight user guide, Sub Account user guide, Object Storage user guide, and Load Balancer user guide.
Create an application server
To create an application server from the NAVER Cloud Platform console:
This section provides a brief overview of how to create an application server. For more information on full creation methods, see the following guides:
- Access the NAVER Cloud Platform console.
- Click Region & Platform at the upper right of the console interface.
- Select the Region in use and the Classic platform, and then click [Apply].
- Click Menu at the upper left of the console interface.
- Navigate to Services > Compute > Server.
- Click [Create server].
- Select the server image and click [Next].
- Enter the required information and click [Next].
- If you do not have an existing authentication key, then create a new authentication key and click [Next].
- If you do not have any ACG, create a new one.
- After the final confirmation, click [Create server].
The ACG name of the application server from step 7 is used when adding ACG to the MySQL Server later on.
Configure the connection environment
To configure the server connection environment in the Classic environment of the NAVER Cloud Platform console, you must configure port forwarding.
This section provides a brief overview of how to set up the access environment. For more information on setting up the access environment, see the following guide:
Configure port forwarding
The following describes how to set port forwarding in Classic:
- From the Classic environment of the NAVER Cloud Platform console, navigate to Services > Compute > Server.
- After selecting the server for which you want to configure port forwarding, click [Port Menu > Forwarding settings] menu.********
- Enter the external port number to configure and click [Add].
- The available external port range is 1,024–65,534. This external port can be used only for server access.
- Click [Apply].
Check admin password
To check the administrator (root) password required to access the application server, after configuring port forwarding:
- From the Classic environment of the NAVER Cloud Platform console, navigate to Services > Compute > Server.
- Click [Server Management and Settings] and navigate to Menu > Check Administrator Password.
- Enter the authentication key generated while creating the server.
- Click [Check password].
- Check the password.
Test the application server connection
To test connectivity to the application server using the PuTTY terminal program:
- Run PuTTY.
- Enter the IP address and port number acquired from the access environment settings for Host Name (or IP address) and Port.

- Click [Open].
- When the PuTTY Security Alert popup appears, click [Accept].

- When the cmd window for server access appears, enter the password you got from Get admin password.

You can change the password through the passwd commands.
Create MySQL Server
Some of the services provided by NAVER Cloud Platform require you to go through the subscription procedure from the console before the start of actual usage. However, for Cloud DB for MySQL, you can start using it upon creation of a MySQL Server without a separate subscribe step. The following describes how to create a MySQL Server from the NAVER Cloud Platform console:
- This section provides a brief overview of how to create a DB Server. For more information on full creation methods, see Create MySQL Server.
- Since Cloud DB for MySQL does not require an additional subscription step, there is no separate procedure for canceling the subscription. If you want to stop using Cloud DB for MySQL and prevent charges from incurring, then delete the MySQL Servers you created and were running. To delete MySQL Server, see Delete MySQL Server.
- From the NAVER Cloud Platform console, navigate to Services > Database > Cloud DB for MySQL.
- Click Menu >
DB Server.******** - Click [Create DB Server].
- When the subscribe interface appears, enter the required information and click [Next].
- Click [Create].
Set ACG
To set the Access Control Group (ACG) for a MySQL server in the NAVER Cloud Platform console:
This section provides a brief overview of how to set up ACG. For more information on how to set ACG, see ACG user guide.
- From the NAVER Cloud Platform console, navigate to Services > Database > Cloud DB for MySQL.
- In the Classic environment of the NAVER Cloud Platform console, navigate to Menu >
Services > Database > Cloud DB for MySQL.

- Click and select the ACG to set up, and then click [Set ACG].
- Select the ACG of the MySQL Server automatically created
- Enter the ACG name of the application server in Access source.
- Enter the port number in Allowed port.
- Click [Add].
- Click [Apply].
Test the MySQL Server connection
The following describes how to test if you can connect properly to the created MySQL Server by installing the MySQL client:
- Access the application server, run the following commands, and install MySQL.
- CentOS 6.x or 6.x earlier
[root@localhost ~] # yum -y install mysql mysql-server- CentOS 7.x - MySQL 5.7 version
[root@localhost ~] # yum -y install https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm [root@localhost ~] # rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 [root@localhost ~] # yum -y install mysql-community-server [root@localhost ~] # mysqld --initialize-insecure --user=mysql [root@localhost ~] # systemctl start mysqld- CentOS 7.x - MySQL 8.0 version
[root@localhost ~] # yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm [root@localhost ~] # rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 [root@localhost ~] # yum -y install mysql-community-server [root@localhost ~] # mysqld --initialize-insecure --user=mysql [root@localhost ~] # systemctl start mysqld- Rocky 8.x - 9.x version
[root@localhost ~] # sudo dnf install -y mysql-server [root@localhost ~] # sudo systemctl start mysqldNote- Starting with CentOS 7, the default DB for MySQL installed with yum has changed to MariaDB, so you must run the above command to install it.
- For MySQL 5.7 version, when restoring with Xtrabackup, you must add
innodb_undo_tablespaces = 2to the [mysqld] part of the my.cnf file beforemysqld --initialize-insecure --user=mysql.
- Access the DB server by executing the following commands.
- You can check port number, user ID, and password required for DB access from the DB Server menu of the NAVER Cloud Platform console.
[root@localhost ~] # mysql -h ① Private domain name -u ②user_id -p --port ③DB access port -- Access success examples [root@localhost ~] # mysql -h db-gmcp.cdb.ntruss.com -umysql_dba -p --port 3306 Enter password: ********** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17199 Server version: 5.7.19-log MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>