Database
MySQL. 접속시에 caching_sha2_password error 발생
out of coding
2020. 4. 30. 15:55
처음 세팅할 때 잘못 했나 봅니다.
다음과 같은 에러가 발생을 하는데 해결 방법은 단순합니다.
Unable to load authentication plugin 'caching_sha2_password'.
원인 : MySQL에서 패스워드를 sha2방식으로 암호화하지 않아서 발생하는 문제
해결 :
1. 처음부터 sha2로 만든다.
2. ALTER USER 한다.
mysql> ALTER USER 'player'@'%' IDENTIFIED WITH mysql_native_password BY 'password';