
1. --default_authentication_plugin 옵션의 기본값은 'caching_sha2_password'입니다. 이는 MariaDB 10.6.0 버전부터 기본값으로 설정되었습니다.
2. --default_authentication_plugin 옵션을 사용하여 인증 플러그인을 설정할 때, 다음 플러그인을 사용할 수 있습니다.
- mysql_native_password
- sha256_password
- caching_sha2_password
3. --default_authentication_plugin 옵션을 설정하는 방법은 MySQL의 my.cnf 파일 또는 MariaDB의 my.cnf 파일에서 설정할 수 있습니다. 파일의 위치는 다음과 같습니다.
- Linux: /etc/my.cnf
- Windows: C:\ProgramData\MySQL\MySQL Server 8.0\my.ini
4. --default_authentication_plugin 옵션을 설정했는데, 에러가 발생할 수 있는 경우는 다음과 같습니다.
- 인증 플러그인이 지원되지 않는 버전의 MySQL 또는 MariaDB를 사용 중인 경우
- 인증 플러그인이 이미 설정된 경우
- 인증 플러그인이 잘못된 이름으로 설정된 경우
5. --default_authentication_plugin 옵션을 사용한 예시는 다음과 같습니다.
- my.cnf 파일에 다음 내용을 추가합니다.
#hostingforum.kr
[mysqld]
default-authentication-plugin = caching_sha2_password
- MySQL 또는 MariaDB를 재시작합니다.
6. --default_authentication_plugin 옵션의 버전은 MariaDB 10.6.0 버전부터 지원됩니다.
7. --default_authentication_plugin 옵션에 대한 더 많은 정보는 MySQL 또는 MariaDB의 공식 문서에서 확인할 수 있습니다.
- MySQL 공식 문서: https://dev.mysql.com/doc/refman/8.0/en/default-authentication-plugin.html
- MariaDB 공식 문서: https://mariadb.com/kb/en/library/default-authentication-plugin/
2025-05-29 15:45