[MySQL] 원격에서 Root(or user)로 접속허용 및 모든권한 설정
[펌] egloos - http://egloos.zum.com/jonnychoe/v/5217253
<root로 로그인>
# mysql -uroot -p
password: *****
mysql>use mysql
<로그인 할 사용자 생성>
mysql>insert into user(host,user,password) values('접속허용할 호스트네임 or IP','root',password('패스워드'));
<권한주기>
mysql> grant all privileges on *.* to 'root'@'%' identified by '암호' with grant option;
mysql> flush privileges
mysql> select * from user where User = 'root'
<원격지에서 접속 : -h 옵션>
# mysql -h host -u user -p
'MySQL' 카테고리의 다른 글
쿼리 (0) | 2016.08.12 |
---|---|
MySql Column Type 과 Java Type (0) | 2016.03.17 |
The last packet successfully received from the server was.... (0) | 2016.03.16 |
DataBase, Table 정보 쿼리 (0) | 2016.03.15 |