博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python中的MySQL接口:PyMySQL & MySQLdb
阅读量:5221 次
发布时间:2019-06-14

本文共 868 字,大约阅读时间需要 2 分钟。

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:
    •  >= 2.6 or >= 3.3
    •  >= 4.0
    •  2.7
  • MySQL Server -- one of the following:
    •  >= 4.1 (tested with only 5.5~)
    •  >= 5.1

 

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  database server for Python. The design goals are:

  • Compliance with Python database API version 2.0 
  • 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 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/huamingao/p/6400920.html

你可能感兴趣的文章