차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
mysql_8_인증_플러그인_암호방식_변경 [2020/02/18 02:21] – 만듦 koov | mysql_8_인증_플러그인_암호방식_변경 [2020/02/18 03:59] (현재) – [MySQL 8 인증 플러그인 암호화 방식 변경] koov | ||
---|---|---|---|
줄 27: | 줄 27: | ||
| localhost | mysql.session | | localhost | mysql.session | ||
| localhost | mysql.sys | | localhost | mysql.sys | ||
- | | localhost | root | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | + | | localhost | root | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | 2018-09-11 18:20:19 | |
+-----------+------------------+-----------------------+------------------------------------------------------------------------+-----------------------+ | +-----------+------------------+-----------------------+------------------------------------------------------------------------+-----------------------+ | ||
4 rows in set (0.00 sec) | 4 rows in set (0.00 sec) | ||
줄 33: | 줄 33: | ||
</ | </ | ||
+ | 이 암호화 방식을 변경하려면 아래와 같이 해당 사용자의 암호화 플러그인을 변경하여 설정하도록 합니다. | ||
- | ===== 참조링크 ===== | + | <WRAP prewrap> |
+ | <code bash> | ||
+ | mysql> ALTER USER ' | ||
+ | Query OK, 0 rows affected (0.00 sec) | ||
+ | mysql> select host, user, plugin, authentication_string, | ||
+ | +-----------+------------------+-----------------------+------------------------------------------------------------------------+-----------------------+ | ||
+ | | host | user | plugin | ||
+ | +-----------+------------------+-----------------------+------------------------------------------------------------------------+-----------------------+ | ||
+ | | localhost | mysql.infoschema | caching_sha2_password | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | 2020-02-18 11: | ||
+ | | localhost | mysql.session | ||
+ | | localhost | mysql.sys | ||
+ | | localhost | root | mysql_native_password | *B08327C27D3ECC829D550501D6A06E0496A74F5C | ||
+ | +-----------+------------------+-----------------------+------------------------------------------------------------------------+-----------------------+ | ||
+ | 4 rows in set (0.00 sec) | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 변경 후에는 해당 계정의 암호화 플러그인과 암호문자열이 변경된것을 확인할 수 있다. | ||
+ | |||
+ | ===== 새로운 계정 추가시 자동 적용 ===== | ||
+ | 위 방법을 적용해도 새로이 계정을 추가하는 경우에는 다시 '' | ||
+ | 이후에도 계속해서 고정적으로 '' | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | <code vim / | ||
+ | [mysqld] | ||
+ | # Remove leading # to revert to previous value for default_authentication_plugin, | ||
+ | # this will increase compatibility with older clients. For background, see: | ||
+ | # https:// | ||
+ | # default-authentication-plugin=mysql_native_password | ||
+ | default-authentication-plugin=mysql_native_password | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | ===== 참조링크 ===== | ||
+ | * https:// | ||
* http:// | * http:// | ||
- | * | + |