sudo apt update

sudo apt install mysql-server

dpkg -l | grep mysql-server

sudo apt isntall net-tools

sudo netstat -tap | grep mysql

아래 명령어로 mysqld.cnf 파일 수정
cd /etc/mysql/mysql.conf.d
sudo vi mysqld.cnf

bind-address = 127.0.0.1 -> 0.0.0.0 수정


sudo mysql (sudo service mysql start)

create user 'DB계정명'@'%' identified by 'DB패스워드';
grant all privileges on . to 'DB계정명'@'%' with grant option;
FLUSH PRIVILEGES;

