原来我用_mysql这个模块,比较简单,现在为了适应更高级的API,转到了MySQLdb上来了。
相关文档:
1. _mysql和MySQLdb的比较: http://stackoverflow.com/questions/1620575/python-advantages-and-disvantages-of-mysql-vs-mysqldb
2. 使用MySQLdb: http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python?answertab=votes#tab-top
3. Python MySQL Documentation: http://www.mikusa.com/python-mysql-docs/index.html