Skip to content Skip to sidebar Skip to footer

Pycharm Import Mysql

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 succ

Solution 1:

You can use pymysql installing through PyCharm instead of MySQLdb. It's a drop-in replacement for it.

Documentation:https://github.com/PyMySQL/PyMySQL

Post a Comment for "Pycharm Import Mysql"