程序名称:MySQL for Python
授权协议: GPL
操作系统: Linux
开发语言: Python
这是 Python 语言连接 MysqL 数据库的接口,MysqLdb为Python提供了MysqL支持,它符合Python DB API版本2.0的要求
代码示例:
import _mysq db=_MysqL.connect(host="outhouse",port=3307,passwd="moonpie",db="thangs") db.query("""SELECT spam, eggs, sausage FROM breakfast WHERE price < 5""")
http://mysql-python.sourceforge.net/