写代码的运维妞

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

MySQLdb模块只支持MySQL-3.23到5.5之间的版本,只支持Python-2.4到2.7之间的版本

PyMySQL支持 Python3.0以后的版本

 

PyMySQL

https://pypi.python.org/pypi/PyMySQL  

https://github.com/PyMySQL/PyMySQL/blob/master/README.rst

  • Python -- one of the following:
  • MySQL Server -- one of the following:

 

MySQLdb

https://pypi.python.org/pypi/MySQL-python/1.2.5

MySQL-python 1.2.5

Python interface to MySQL

MySQLdb is an interface to the popular MySQL database server for Python. The design goals are:

  • Compliance with Python database API version 2.0 [PEP-0249]
  • Thread-safety
  • Thread-friendliness (threads will not block each other)

MySQL-3.23 through 5.5 and Python-2.4 through 2.7 are currently supported. Python-3.0 will be supported in a future release. PyPy is supported.

posted on 2017-02-15 12:38  kayegao  阅读(523)  评论(0编辑  收藏  举报