MySQL
TMA-MYSQL-8.3
Set Maximum Connection Limits for Server and per User
낮음레벨 1수동 검토mysql
설명
Limiting concurrent connections to a MySQL server can be used to reduce risk of Denial of Service (DoS) attacks performed by exhausting connection resources.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Run SELECT VARIABLE_NAME, VARIABLE_VALUE FROM performance_schema.global_variables WHERE VARIABLE_NAME LIKE 'max_%connections'; (max_user_connections 0 = no limit) and SELECT user, host, max_user_connections FROM mysql.user WHERE user NOT LIKE 'mysql.%' AND user <> 'root'; (0 = global value applies). No server or per-user limit is a fail.
조치 방법
조치 방식: 가이드 또는 인프라 패치
Set max_connections and max_user_connections under [mysqld] (SET GLOBAL to apply now) and per account with ALTER USER '<user>'@'<host>' WITH MAX_USER_CONNECTIONS <n>;
속성
- 운영 체제
- 모두
- 태그
- mysqldatabaseavailabilitymanual
- 참고 자료
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 8.3 Set Maximum Connection Limits for Server and per User