import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="henry123test",
)
This was the error returned
mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported.
Can anyone help me, been googling for some time now.