[Answer]-Can I use Connector/Python instead of MySQLdb? And how?

1👍

You can use the mysql connector, and here is the guide to python developers:

http://dev.mysql.com/doc/connector-python/en/

You can also use MariaDB.

👤eLRuLL

0👍

You could use pymysql. "The goal of PyMySQL is to be a drop-in replacement for MySQLdb". Check the docs here.

pip install mysqlclient pymysql

Once these libraries are installed, just add the lines in the manage.py file in your Django project and use the database settings for mysql.

import pymysql

pymysql.install_as_MySQLdb()

Leave a comment