Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (120 points)
Hi, I'm using Python 3.9, and the module MySQLdb is not compatible with 3.9

How can I remplace this module. I did try with  mysql-connector but i had many errors in the instalation

Or is there any way, i can use MySQLdb? maybe with and old version of Python?

import MySQLdb

db = MySQLdb.connect(host="localhost", user="root", passwd="123456", db="distanciaslog")

cur = db.cursor()

Please log in or register to answer this question.

Related questions

Browse Categories