Python and MySQL: is there an alternative to MySQLdb?

前端 未结 8 1540
挽巷
挽巷 2021-02-05 13:09

Is there a module written purely in Python that will allow a script to communicate with a MySQL database? I\'ve already tried MySQLdb without success. It requires too much: GCC,

8条回答
  •  感动是毒
    2021-02-05 14:04

    Without a doubt MySQLdb is the best solution, but if you can't use it…

    If you have libmysqlclient.[so|dll], you could access it directly using ctypes module.

提交回复
热议问题