본문 바로가기

MySQL

[MYSQL] Authentication method 'caching_sha2_password' not supported by any of the available plugins. , mysql can't connect to mysql server on 'localhost' (10061)

MYSQL 설치시 위와 같은 에러가 발생 

mysql can't connect to mysql server on 'localhost' (10061) 

: MYSQL 서비스가 실행되지 않아서 생긴 에러

내가 서비스가 실행되지 않았던 이유는 

(Authentication method 'caching_sha2_password' not supported by any of the available plugins.)

해당 에러로 실행되지 않음.

버전 8에서 보안 이슈등으로 생긴 이슈

MYSQL my.ini 폴더에서 

default_authentication_plugin=mysql_native_password

한줄 추가

(위 my.ini폴더에서 위 한줄 추가시 utf-8 로 저장시 이슈가 있어 anai로 변경 후 서비스 재시작

안될경우 반대로 다시 변경후 재시작(서비스에서 재시작))

위 한줄 추가 후 MYSQL 서비스 재시작 후 정상작동 확인