시스템/DB
mysql 접근 ip 추가
chance
2017. 2. 20. 19:15
Mysql> select host,user,password from mysql.user;
Mysql> grant all privileges on *.* to 'root'@'1.1.1.1' identified by 'root-password';
Mysql> grant all privileges on *.* to 'root'@'1.1.%' identified by 'root-password';
Mysql> grant all privileges on *.* to 'root'@'%' identified by 'root-password';
Mysql> flush privileges;
만약 my.cnf 에 bind-address 가 설정되어 있다면 해당 부분 제거
특정db와 table로 권한을 주고자 할때는 *.* 에 db.table 로 변경