본문 바로가기

Server

Mysql8.0 외부 접속 허용

sudo mysql -u root -p password

//로 접속한후

 

create user 'root'@'%' identified by 'password';

 

grant all privileges on *.* to 'root'@'%';

 

flush privileges;

 

 

 

Mysql 8.0 은 5.7과 다르게 bind-address 주석할 필요 없음