Error No module named MySQLdb
I am using Python version 3.8.3 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL.
How to fix this error?
Try this code:
pip install PyMySQL
and then add this two lines to your Project/Project/init.py
import pymysql
pymysql.install_as_MySQLdb()
Hope this will resolve importerror: no module named 'mysqldb'.