Today, during MySQL Connect 2012 keynote, the General Availability of MySQL Connector/Python 1.0 was announced! This is the first GA release of Oracle’s pure Python database driver for MySQL. MySQL Connector/Python v1.0 works with MySQL 5.5 and 5.6, but older versions of the MySQL servers are known to work. For Python, version v2.6, v2.7 and v3.1 and greater are officially supported. Python v2.4⁄2.5 are know to work as well. As always, we welcome your feedback and questions through our bug system or using the MySQL Python forum.
Talking about Python at MySQL Connect 2012
Love Python? Dig MySQL? Want to meet Oracle’s MySQL Python Experts? Come and join us at the MySQL Connect 2012 conference in San Fransisco next week, 29⁄30 September. My colleague Chuck and I are both giving 3 sessions in which we discuss MySQL Utilities and Connector/Python. Overview of our session: Talk: Developing Python Applications with MySQL Utilities and MySQL Connector/Python Hands on Lab: MySQL Utilities BoF: MySQL Utilities and MySQL Connector/Python: Python Developers, Unite!
MySQL Connector/Python v1.0.6 beta available
We released the second beta of MySQL Connector/Python v1.0. You can download v1.0.6 from the MySQL website and the change history can be found in the online manual. Usually, beta releases do not have big changes, but we had to push some code which did not make the previous one and it really had to go into v1.0. The exceptions raised by Connector/Python are now mapped against the ‘SQLState’ found in the MySQL server errors.
Fetching rows as dictionaries with MySQL Connector/Python (revised)
It is possible with MySQL Connector/Python to define your own cursor classes. A very good use case is to return rows as dictionary instead of tuples. This post shows how to do this using MySQL Connector/Python v1.0 and is an update for an older blog entry.
MySQL Connector/Python 1.0.5 beta available through PyPI
Yesterday we announced the availability of MySQL Connector/Python v1.0.5 beta. Today I’ve made it available on PyPI so it can be easily installed. Note that I did remove the old development release and when you upgrade or try v1.0.5, you should check the ChangeLog. $ pip install mysql-connector-python For those wondering why the name includes ‘python’: it’s just to align it with other MySQL connectors and to keep the name consistent with other distribution types.