I am trying to run this code:
from flask_sqlalchemy import SQLAlchemy
import mysql.connector
import csv
import pandas as pd
mydb = mysql.connector.connect(
host="127.0.0.1",
user="root",
passwd="abc123",
database="db"
)
But I am receiving this error:
Traceback (most recent call last):
File "C:\Users\user123\Desktop\SQLtest\setup.py", line 10, in <module>
passwd="abc123",
.
.
.
"Authentication plugin '{0}' is not supported".format(plugin_name))
mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported
Any help would be appreciated.