DB 연결 에러 발생(blocked because of many connection errors) > db

본문 바로가기

db

DB 연결 에러 발생(blocked because of many connection errors)

작성일 18-12-03 17:34

페이지 정보

작성자서방님 조회 333회 댓글 0건

본문

DB 연결 에러가 발생 내용


Warning: mysql_connect(): Host 'ns1.****.net' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/index.php on line 10

DB connent Error... Check your database configuration file (config.php)


[ 오류 ]


Host 'hostname' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts'


[ 원인 ]


해당오류는 호스트로부터의 접속요청중 max_connect_errors와 관련된 접속의 설정값보다 초과하여 발생할 때 생기는 오류이다.

설정값 이상의 요청이 들어올 경우 mysqld는 해킹 및 잘못된 요청으로 관주하여 host 부터의 접속을 블락하게 된다.


[ 해결 ]


1.flush-hosts 명령어를 사용하여 초기화한다.


[root@linux]# mysqladmin -u root -p flush-hosts


2.mysql 데몬시작시 max_connect_errors 값을 올려준다.


[root@linux]# ./bin/safe_mysqld --user=mysql -O max_connect_errors=10000 &

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기