Database
[ERROR] MySQL 접속시 caching_sha2_password 오류
코딩공부
2021. 11. 25. 16:12
MySql 8.0의 기본 인증 플러그인
예전의 mysql_native_password가 아니라 caching_sha2_password이다.
Authentication plugin 'caching_sha2_password' cannot be loaded
I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error: Authentication plugin 'caching_sha2_password'
방법1.
ALTER USER '계정'@'localhost' IDENTIFIED WITH mysql_native_password BY '비밀번호';
방법2.
my.ini 파일 변경
[mysqld]
default_authentication_plugin=mysql_native_password