윈도우10 재설치 후

윈도우10 재설치 후

QA

윈도우10 재설치 후

본문

localhost접속하니 다음과 같은 멧시지만 뜹니다.

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for use..........

도움 부탁드립니다.

이 질문에 댓글 쓰기 :

답변 3

검색해보니, dbconfig.php를 확인하시던가, DB유저 권한이야기만 나오네요.

권한이라면 아마도 접속정보는 맞아도  IP에 따라 차단하는 정책때문일겁니다.

 

만일 권한이라면...


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)

 

https://sir.kr/qa/109509

 

https://sir.kr/qa/173971?vpage=1#c_173978

 

https://sir.kr/qa/116274

 

https://kin.naver.com/qna/detail.nhn?d1id=1&dirId=1040203&docId=145388246&qb=bXlzcWxpX2Nvbm5lY3QoKSBbZnVuY3Rpb24ubXlzcWxpLWNvbm5lY3RdOiAoMjgwMDAvMTA0NSk6&enc=utf8&section=kin&rank=1&search_sort=0&spq=0

 

 

mysql 서버가 제대로 돌고 있는지 여부 체크해 보시고

DB 접속 계정을 확인해 보시고 /data/dbconfig.php 파일을 수정해 주셔야 합니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 123,315 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT