I am writing a program for a school project using python and MySQL. When I try to connect python with MySQL this error pops up Authentication plugin 'auth_gssapi_client' cannot be loaded
Does someone know how to fix it? Im on windows 10.
I tried several things recommended by other posts but they all didnt work.
Here's one of them: MySQL Workbench dialog.dll for PAM connection
Thanks in advance
Heres my code:
import mysql.connector
from mysql.connector import Error
try:
connection = mysql.connector.connect(host='localhost',
database='quiz',
user='root',
password='1234')
except Error as e:
print("Error while connecting to MySQL", e)
finally:
if connection.is_connected():
connection.close()
print("MySQL connection is closed")