Documentation Index

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

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

Cloud DB for MySQL 개요

Prev Next

Cloud DB for MySQL은 세계적으로 가장 많이 사용되는 관계형 데이터베이스 MySQL을 이용한 완전 관리형 클라우드 데이터베이스 서비스입니다. Cloud DB for MySQL에서는 데이터베이스 관리 기능에 대한 CLI를 vmysql 명령어로 제공합니다.

Cloud DB for MySQL 공통 설정

Cloud DB for MySQL CLI에서 공통으로 사용하는 명령어와 옵션 형식을 설명합니다.

구문

vmysql는 다음 구문으로 실행합니다.

./ncloud vmysql <subcommand> [options]

옵션

vmysql에서 공통으로 사용할 수 있는 옵션입니다.

옵션 타입 필수 여부 설명
--regionCode String Optional 리전 코드
--output String Optional 응답 결과의 형식
  • json (기본값) | xml

Cloud DB for MySQL 명령어

vmysql 명령어에서 실행할 수 있는 하위 명령어 목록입니다.

DB Server

DB Server 관련 명령어는 다음과 같습니다.

명령어 설명
createCloudMysqlInstance Cloud DB for MySQL 인스턴스 생성
getCloudMysqlInstanceList Cloud DB for MySQL 인스턴스 목록 조회
getCloudMysqlInstanceDetail Cloud DB for MySQL 인스턴스 상세 정보 조회
createCloudMysqlSlaveInstance Cloud DB for MySQL 인스턴스에 Slave 서버 인스턴스 추가
getCloudMysqlRecoveryTime Cloud DB for MySQL 인스턴스의 복원 가능 시간 조회
createCloudMysqlRecoveryInstance Cloud DB for MySQL 인스턴스에 Recovery 서버 인스턴스 추가
changeCloudMysqlServerSpec Cloud DB for MySQL 인스턴스의 DB 서버 스펙 변경
upgradeCloudMysqlDbEngineVersion Cloud DB for MySQL 인스턴스의 DB 엔진 버전 업그레이드
rebootCloudMysqlServerInstance Cloud DB for MySQL 서버 인스턴스 재시작
getCloudMysqlEventHistoryList Cloud DB for MySQL 인스턴스의 이벤트 내역 목록 조회
deleteCloudMysqlServerInstance Cloud DB for MySQL 인스턴스의 Slave 또는 Recovery 서버 인스턴스 삭제
deleteCloudMysqlInstance Cloud DB for MySQL 인스턴스 삭제

Database

데이터베이스 관련 명령어는 다음과 같습니다.

명령어 설명
addCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스에 데이터베이스 추가
getCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스의 데이터베이스 목록 조회
deleteCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스에서 데이터베이스 삭제

DB User

DB User 관련 명령어는 다음과 같습니다.

명령어 설명
addCloudMysqlUserList Cloud DB for MySQL 인스턴스에 사용자 추가
getCloudMysqlUserList Cloud DB for MySQL 인스턴스의 사용자 목록 조회
changeCloudMysqlUserList Cloud DB for MySQL 인스턴스의 사용자 정보 수정
deleteCloudMysqlUserList Cloud DB for MySQL 인스턴스에서 사용자 삭제

Backup

백업 관련 명령어는 다음과 같습니다.

명령어 설명
getCloudMysqlBackupList Cloud DB for MySQL 인스턴스의 백업 목록 조회
getCloudMysqlBackupDetailList Cloud DB for MySQL 인스턴스의 백업 상세 정보 목록 조회
exportBackupToObjectStorage Cloud DB for MySQL 인스턴스의 백업 파일을 Object Storage로 전송

DB Server Log

DB Server 로그 관련 명령어는 다음과 같습니다.

명령어 설명
getDbServerLogList Cloud DB for MySQL 인스턴스의 DB 서버 로그 목록 조회
exportDbServerLogToObjectStorage Cloud DB for MySQL 인스턴스의 DB 서버 로그 파일을 Object Storage로 전송

Common

리소스 생성 시 참조하는 공통 조회 명령어는 다음과 같습니다.

명령어 설명
getCloudMysqlImageProductList Cloud DB for MySQL 이미지 상품 코드 목록 조회
getCloudMysqlProductList Cloud DB for MySQL 서버 스펙 코드 목록 조회
getCloudMysqlTargetVpcList VPC 목록 조회
getCloudMysqlTargetSubnetList Subnet 목록 조회

Cloud DB for MySQL 연관 리소스

Cloud DB for MySQL CLI에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다.