Search…
한국어
구름IDE 사용법
18. 자주 묻는 질문(FAQ)
언어 및 환경
구름IDE 에서 MySQL Workbench를 사용하고 싶어요

mysqld.cnf 설정

vi로 /etc/mysql/mysql.conf.d/mysqld.cnf을 아래와 같이 편집해주세요.
1
#bind-address = 127.0.0.1 주석해야함
Copied!
아래의 명령어를 입력하여 재시작해주세요.
1
service mysql restart
Copied!

MySQL 계정에 권한 부여

아래의 방법으로 권한을 부여해주세요.
1
$ mysql -u root -p
2
Enter password:
3
Welcome to the MySQL monitor. Commands end with ; or \\g.
4
Your MySQL connection id is 4
5
Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)
6
7
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
8
9
Oracle is a registered trademark of Oracle Corporation and/or its
10
affiliates. Other names may be trademarks of their respective
11
owners.
12
13
Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.
14
15
mysql> GRANT ALL ON *.* TO [email protected]'%' IDENTIFIED BY 'pass';
16
Query OK, 0 rows affected, 1 warning (0.00 sec)
17
18
mysql> FLUSH PRIVILEGES;
19
Query OK, 0 rows affected (0.00 sec)
Copied!

MySQL 포트포워딩 설정

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

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

아래의 방법으로 접속하세요.
1
$ mysqlsh [email protected]:59700
2
Please provide the password for '[email protected]:59700':
3
Save password for '[email protected]:59700'? [Y]es/[N]o/Ne[v]er (default No):
4
MySQL Shell 8.0.19
5
6
Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
7
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
8
Other names may be trademarks of their respective owners.
9
10
Type '\\help' or '\\?' for help; '\\quit' to exit.
11
Creating a session to '[email protected]:59700'
12
Fetching schema names for autocompletion... Press ^C to stop.
13
Your MySQL connection id is 6
14
Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)
15
No default schema selected; type \\use <schema> to set one.
16
MySQL 54.184.110.197:59700 ssl JS >
Copied!