블로그 이미지
빤따스뤽

Rss feed Tistory
카테고리 없음 2012. 9. 14. 14:11

[MySQL] Host 'ip address' is not allowed to connect to this MySQL server

접속 허용

[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.61 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use CHIS_DB
Database changed
mysql> grant all privileges on *.* to 'chis_user'@'192.168.10.62' identified by 'chis_user' with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> grant select,insert,update,delete,create,alter,drop on CHIS_DB.* to 'chis_user'@'192.168.10.62' identified by 'chis_user' with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> quit

바로 적용됨

MySQL 재가동

[root@localhost ~]# service mysqld restart
mysqld 를 정지 중:  [  OK  ]
mysqld (을)를 시작 중:  [  OK  ]
[root@localhost ~]#

 


 

,
TOTAL TODAY