개발로 자기계발
728x90
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

이 오류는 MySQL 연결을 설정할 때 sha256_password 또는 caching_sha2_password 인증 방법을 사용하려면 필요한 cryptography 패키지가 설치되지 않았음을 나타낸다.

 

이 패키지는 MySQL 8.0 이상에서 기본으로 사용되는 인증 플러그인인 caching_sha2_password를 지원하기 위해 필요하다.

이 문제를 해결하려면 cryptography 패키지를 설치

pip install cryptography

 

728x90
SMALL
profile

개발로 자기계발

@김잠봉

틀린부분이나 조언이 있다면 언제든 환영입니다:-)