Authentication plugin 'caching_sha2_password' cannot be loaded가 뜰때
// mysql_native_password로 바꿀때
ALTER USER '사용자이름'@'localhost' IDENTIFIED WITH mysql_native_password BY '바꿀 비밀번호';
// caching_sha2_password로 바꿀때
ALTER USER '사용자이름'@'localhost' IDENTIFIED WITH caching_sha2_password BY '바꿀 비밀번호';
mysql 8.0버전으로 바뀌면서 인증방식이 sha_256으로 바뀌게 되었음
그래도 안되면 서버문제
C:\ProgramData\MySQL\MySQL Server 8.0\my.ini
// caching_sha2_password 사용
authentication_policy=caching_sha2_password
// mysql_native_password 사용
authentication_policy=mysql_native_password
참고