■ 에러 메세지.
ERROR 1129(00000): "Host '112.175.114.184' is blocked because of many connection errors; unblock with
'mysqladmin flush-hosts'"
■ 원인.
원격 서버에서 MariaDB Server 로 단순 커넥션 한 뒤 close 하게 되면
MariaDB 은 비정상적인 접속으로 판단하여 해당 IP를 블럭킹하게 된다.
이때 MariaDB 의 비정상적인 접속 요청수를 카운트 하는데 global max_connect_errors 에 지정된 값을 넘기면 자동 블럭킹처리가 됩니다.
■ 조치.
-- 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;
* max_connections ,max_connect_errors 값을 변경하면 되지만, flush hosts 명령어를 실행하여 초기화 화면 정상적으로 접속이 된다.