키키호의 블로그
MYSQL 원격접속 권한 추가 본문
use mysql;
grant all privileges on *.* to 'root'@'IPaddress' identified by 'password' with grant option;
flush privileges;
해당 명령으로 추가하면 됩니다.
호스트를 추가하려고 한다면
grant all privileges on *.* to 'root'@'host' identified by 'password' with grant option; 로 추가하시면 됩니다.
원격 접속 명령어는 "mysql -h host -u user -p" 입니다.
해당 명령어로 해당 IP는 접속이 가능해집니다.
'SQL > Mysql' 카테고리의 다른 글
Root 패스워드 리셋 (0) | 2012.05.03 |
---|
Comments