Quickstarts > 6. Create and attach databases
This learning module will guide you through the basic configuration procedures to create a database and connect it with an application in the NHN Cloud environment. NHN Cloud provides reliable and scalable database services to help users build and operate databases easily and efficiently.

In this learning module, you'll learn to

Final configuration diagram
To get started with NHN Cloud, you need to prepare the following things
Member account
This guide starts after step 5. Configure security.
(MyORG), project(MyPRJ), and Korea (Pyeongchon) regionthat you want to use for your lab.DisabledUbuntu Server 20.04 LTS Any availability zone.mysql-db-basict2.c1m1 in the instance type name, then click Select 1MyKeyHDD20 GBCreate network interface MySubnet (192.168.0.0/24 ) resource to use it as the selected subnet.Disabled (Default)MySG-DBIncomingMy SQL[Note] Custom TCP
- If you select "Custom TCP" as the IP protocol, you can enter your own port value. Enter
3306in the field labeled 1.
IPv4CIDR - 192.168.0.0/24MySG-DB, which you created above.that is mysql-db-basic.Access the database using the Linux instance
linux-server-basicthat you created in Module 4. For instructions on creating and accessing the linux-server-basic instance, see 04-Creating a Network Setup and Instance.
to linux-server-basicwith the command below.#PowerShell
cd /(name of folder where MyKey.pem file is located)
ssh -i MyKey.pem ubuntu@(Floating IP address of the linux-server-basic instance)
#bash
sudo apt update
sudo apt install mysql-client -y
#bash
export MYSQL_PWD=nhnpassword
mysql --host=(virtual IP address of mysql-db-basic instance) --user=nhncloud -e "SELECT * FROM employees.employees LIMIT 30;"
Verify that the results from the database are retrieved.
