> For the complete documentation index, see [llms.txt](https://help.goorm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.goorm.io/ko/goormide/07.-faq/ide-mysql-workbench.md).

# 구름IDE 에서 MySQL Workbench를 사용하고 싶어요

### mysqld.cnf 설정

vi로 `/etc/mysql/mysql.conf.d/mysqld.cnf`을 아래와 같이 편집해주세요.

```
#bind-address = 127.0.0.1 주석해야함
```

아래의 명령어를 입력하여 재시작해주세요.

```
service mysql restart
```

### MySQL 계정에 권한 부여

아래의 방법으로 권한을 부여해주세요.

```
$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \\g.
Your MySQL connection id is 4
Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)

Copyright (c) 2000, 2020, 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> GRANT ALL ON *.* TO root@'%' IDENTIFIED BY 'pass';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
```

### MySQL 포트포워딩 설정

1. 상단 메뉴에서 **\[컨테이너]** → **\[포트포워딩 설정]**&#xC744; 클릭하세요.
2. 유형을 MySQL 선택한 뒤  **\[등록]** 버튼을 클릭하세요.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2Fh9JHeK82vZTm574UycAb%2F%E1%84%91%E1%85%A9%E1%84%90%E1%85%B3%E1%84%91%E1%85%A9%E1%84%8B%E1%85%AF%E1%84%83%E1%85%B5%E1%86%BC.png?alt=media&amp;token=61bd9d83-0df9-4a5a-9263-06864930f3ab" alt=""><figcaption></figcaption></figure>

### mysqlsh로 goormIDE 컨테이너 안에 있는 MySQL server 접속

아래의 방법으로 접속하세요.

```
$ mysqlsh root@54.184.110.197:59700
Please provide the password for 'root@54.184.110.197:59700': 
Save password for 'root@54.184.110.197:59700'? [Y]es/[N]o/Ne[v]er (default No): 
MySQL Shell 8.0.19

Copyright (c) 2016, 2019, 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 '\\?' for help; '\\quit' to exit.
Creating a session to 'root@54.184.110.197:59700'
Fetching schema names for autocompletion... Press ^C to stop.
Your MySQL connection id is 6
Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)
No default schema selected; type \\use <schema> to set one.
MySQL  54.184.110.197:59700 ssl  JS >
```
