728x90
배포되어 있는 사이트에서 갑자기 로그인이 안됬다
로그를 보니 이렇게 나와있다
Host '' is blocked because of many connection errors; Unblock with 'mysqladmin flush-hosts'
mysql과 연결이 비정상적으로 끊어지면, 해당 횟수를 카운트하여 global max_connect_errors 에 지정된 값을 넘기면 자동 블럭킹처리 된다
해결방안
mysql에 접속
mysql - u root - p
max_connect_errors 카운트 확인
select @@global.max_connect_errors;
max_connections 카운트 확인
select @@global.max_connections;
에러 카운트 초기화
flush hosts;
max_connections 변경
set global max_connections=300;
max_connect_errors 변경
set global max_connect_errors=10000;
에러 카운트를 초기화하니 바로 로그인이 되었당!
참고 사이트
728x90
'IT > db' 카테고리의 다른 글
MySQL & MariaDB 기본 명령어 (0) | 2022.05.26 |
---|