답변 3개
채택된 답변
+20 포인트
검색해보니, dbconfig.php를 확인하시던가, DB유저 권한이야기만 나오네요.
권한이라면 아마도 접속정보는 맞아도 IP에 따라 차단하는 정책때문일겁니다.
만일 권한이라면...
Copy
ERROR 28000 : Access denied for user 'user_id'@'xxx.xxx.xxx.xxx' (using password: YES)
접속 계정에 대하여 IP를 허락해주어야 함.
mysql> select user, host from mysql.user;
+------+----------------+
| user | host |
+------+----------------+
| user | % |
| root | 127.0.0.1 |
| root | xxx.xx.xxx.xxx |
| user | xxx.xx.xxx.xxx |
| root | xxx.xx.xxx.xxx |
| root | ::1 |
| | centos |
| root | centos |
| | localhost |
| root | localhost |
| user | localhost |
+------+----------------+
11 rows in set (0.00 sec)
mysql>
mysql> CREATE USER 'user'@'yyy.yy.yyy.yyy' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> select user, host from mysql.user;
+------+----------------+
| user | host |
+------+----------------+
| user | % |
| root | 127.0.0.1 |
| user | yyy.yy.yyy.yyy |
| root | xxx.xx.xxx.xxx |
| user | xxx.xx.xxx.xxx |
| root | xxx.xx.xxx.xxx |
| root | ::1 |
| | centos |
| root | centos |
| | localhost |
| root | localhost |
| user | localhost |
+------+----------------+
12 rows in set (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
답변을 작성하려면 로그인이 필요합니다.