mysql password 변경

BackEnd_Ash.log·2022년 5월 16일
0

database

목록 보기
22/31

mysql password 정책확인

mysql> show variables like 'validate_password%';
+--------------------------------------+--------+
| Variable_name                        | Value  |
+--------------------------------------+--------+
| validate_password.check_user_name    | ON     |
| validate_password.dictionary_file    |        |
| validate_password.length             | 8      |
| validate_password.mixed_case_count   | 1      |
| validate_password.number_count       | 1      |
| validate_password.policy             | MEDIUM |
| validate_password.special_char_count | 1      |
+--------------------------------------+--------+

mysql 8.0 이상 password 변경

mysql 8.0 이상 password 를 변경하고 싶을때,

set global validate_password.policy=0;
set global validate_password.policy=1;

mysql 5.7 password 변경

set global validate_password_policy=0;
set global validate_password_policy=1;
profile
꾸준함이란 ... ?

0개의 댓글