Unable to connect to MySQL 8 from Python 3.8


I am using the following guidelines to connect to MySql8 from my Python code


When I enter my connection details, I get the following error:

mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported

I do not know what the issue could be? The link clearly does not talk about any security or the "Authentication plugin".

Would appreciate any help possible

Many Thanks


Sorted!! I just had to provide the mysql driver to Python. Adding to PyCharm or the any IDE is not a solution per se.

This is what I had to do:


Answered By – Singam

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published