ubuntu 18.04 mysql 설치

1. sudo apt update

2. sudo apt install mysql-server

3. sudo mysql_secure_installation

4. sudo mysql_secure_installation

5. Check authentication method for MySQL users

5.1 host가 % 일 경우

6. 수정 bind-address=127.0.0.0

vi /etc/mysql/mysql.conf.d/mysqld.cnf

7. ufw allow 연결 설정 Or IPtable Port open

8. Mysql WorkBench 연결 테스트

참고 : 패캐지가 지원을 하지 않는 경우

sudo apt install mariadb-server-10.0