운영체제 이야기/Linux(CentOS)
[CentOS7] mysql 비밀번호 정책 확인 및 변경
한희성
2021. 3. 5. 13:27
반응형
비밀번호를 열심히 초기화 한 후 사용하려고보니 아래와 같은 오류가 나더라!!
1. ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
2. ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
비밀번호 정책을 확인 해 보자
* SHOW VARIABLES LIKE 'validate_password%'
혹시 라고 위 명령어를 날렸을 때 계속해서 1820 오류가 난다면 아래와 같이 조치하자
* vi /etc/my.cnf * [mysqld] 영억에 validate_password_policy=LOW 추가 하고 systemctl restart mysqld
반응형