I am trying
import MySQLdb as mdb
on PyCharm and get the error:
ImportError: No module named MySQLdb
From the PyCharm-preference, cannot find MySQLdb to import. pymysql was successfully installed on PyCharm though. Suggestions ? Thank you very much.

You can use pymysql installing through PyCharm instead of MySQLdb. It's a drop-in replacement for it.
Documentation: https://github.com/PyMySQL/PyMySQL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With