python - PyCharm import MySQL -


i trying

import mysqldb mdb 

on pycharm , error:

importerror: no module named mysqldb 

from pycharm-preference, cannot find mysqldb import. pymysql installed on pycharm though. suggestions ? thank much.

enter image description here enter image description here

you can use pymysql installing through pycharm instead of mysqldb. it's drop-in replacement it.

documentation: https://github.com/pymysql/pymysql


Comments