Good day. Hope your all are well. Can someone help me with fix this?
I\'m new to the MySQL environment. I\'m trying to connect to MySQL Database remotely. I used th
import mysql.connector
def connection():
conn = mysql.connector.connect(host = "XXXXX",
user = 'XXXXX',
password = 'XXXXX',
database = 'login_page',
auth_plugin='mysql_native_password')
c = conn.cursor()
return c , conn
Download mysql connector rather than pymysql and try connecting this way. It worked for me, hope it works for u too.