[🌐EN](<https://synctree-guide.notion.site/DB-Binding-MySQL-Sample-DB-Integration-a2cf58dfbcaa4a0aa9efc9f6481a2f89>)

본 문서에서는 DB Storage와 Storage 블록을 활용해 DB 데이터를 연동하여 가져오는 방법을 설명합니다.



▶Storage

1) DB Storage 생성

Untitled

No. 기능
1 DB Storage 생성 - Studio > Storage > DB Storage > + Create Storage
2 DB Type MySQL 선택
3 Storage 생성 - 해당 Group 선택 > Create Storage- Database Type : MySQL

2) Query 등록

Untitled

No. 기능
1 Query 생성 - Studio > Storage > Query Manager > + Create Query
2 Query 생성 창에서 관련 정보를 입력

▶NBlock

1) Bind Parameter로 활용할 Data를 Request Body에 구성

Untitled

2) BizUnit에서 DB Storage와 Query 블록 연결하기

Untitled

No. 기능
1 Request Data로부터 Bind Parameter로 쓸 Data를 가져옴 {“a” : “1”}
2 DB Connector - Apps에서 연결한 DB Storage 정보 출력
3 Query문 등록

3) DB Data 호출 결과 확인하기