brunch

NCP 23탄-3. DB 생성-2024

by Master Seo

DB를 별도로 분리해 구성하자.

프라이빗 서브넷에 mysq DB 1대 구축한다.



<1> 퍼블릭 1 , 프라이빗 1 네트워크

<2> DB 서버 추가




<1> 퍼블릭 1 , 프라이빗 1 네트워크



슬라이드3.JPG


pri1

10.0.0.0/23

Internet Gateway 전용 여부 > N (Private)

슬라이드4.JPG



<2> DB 서버 추가


DB를 프라이빗에 구축한다.



1


Services > Cloud DB for MySQL > DB Server 생성


고가용성 지원 체크 해제~

DB 서버 1대만 생성하여 개발한다.


60 db.png


DB서버 이름

ngame-dev2


DB서비스 이름

thseodb1




2

90 db4.png




3

DB 도메인명 확인

보안 그룹허용 3306 - Server > ACG > ACG 설정

DB 클라이언트 설치

DB 접속 테스트




db-pc0br.vpc-cdb.ntruss.com




# 로키리눅스


yum -y install mysql mysql-server


mysql -u adminseo -p -h db-pc0br.vpc-cdb.ntruss.com

Enter password:


Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 785

Server version: 8.0.36 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

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>

mysql>


show databases;




4

참고 자료


1

https://guide.ncloud-docs.com/docs/clouddbformysql-start



2

https://brunch.co.kr/@topasvga/1403



3

https://brunch.co.kr/@topasvga/1860



다음 - 로드밸런서 생성


https://brunch.co.kr/@topasvga/4055



keyword
매거진의 이전글NCP 23탄-2. 서버 1대가 필요해요-2024