개발자료/SQL

mysql 원격접속 권한 허용

구룡포과메기 2019. 6. 9. 17:01

mysql>create user 'root'@'%' identified by 'root';

 

mysql>grant all privileges on *.* to 'root'@'%'  with grant option;

 

%에 허용하고자 하는 ip 넣으면 됨