계속 psql를 하다가 이번에 필요로 mysql을 할려고 합니다.
두대의 컴터에다가 mysql server랑 client모두 설치하고, 다음과 같이 서로서로
접속을 시켜보았더니 한쪽에서만 안되더군요.
dbserver : GNU Debian Linux Potato/potato-kr Package install
MySql version 3.22.32-log(server)
xcompile : Wow Linux 6.1 RPM Package install
MySql version 3.22.32(server)
dbserver에서 xcompile로는 다음과 같이 해서 잘되었습니다.
==============================================================================
dynamic@dbserver:~/www/board$ mysql --host=xcompile -udynamic -p dynamic
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \.
Your MySQL connection id is 12 to server version: 3.22.32
Type 'help' for help.
mysql>
==============================================================================
그런데 xcompile 에서 dbserver로 하게 되면 다음과 같은 에러가 나게 됩니다.
==============================================================================
[xcompile@xcompile freeboard]$ mysql --host dbserver -udynamic -ppass dynamic
ERROR 1130: Host '' is not allowed to connect to this MySQL server
==============================================================================
dbserver 에 mysql db내의 user table 내에 등록을 하고 reload를 여러번 했는데도
안되더군요.. 다음은 dbserver의 user table입니다.
==============================================================================
dynamic@dbserver:~/www/board$ mysql -u root -p mysql
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \.
Your MySQL connection id is 84 to server version: 3.22.32-log
Type 'help' for help.
mysql> select host,user,password from user;
+----------------+----------+------------------+
| host | user | password |
+----------------+----------+------------------+
| localhost | root | 201ebef44e9b26e6 |
| easy2 | root | 201ebef44e9b26e6 |
| localhost | | |
| easy2 | | |
| localhost | dynamic | 257995000ed3c7e1 |
| xcompile | dynamic | 257995000ed3c7e1 |
| xcompile.co.kr | dynamic | 257995000ed3c7e1 |
+----------------+----------+------------------+
7 rows in set (0.02 sec)
mysql>
==============================================================================
잘안되어서 xcompile xcompile.co.kr 모두 등록했습니다.
/etc/hosts 에 xcompile 이 알리아스되어있어서 xcompile만 처음에 등록해서
해봤었구요. 물론.. 실제로 그컴퓨터에는 xcompile.co.kr이라는 도메인이
있습니다.
제대로 질문한건지모르겠네요.. 읽어주셔셔 감사합니다.
|