So, looking for a mysql-db-lib that is compatible with py3k/py3.0/py3000, any ideas? google turned up nothing.
|
As for future plans of MySQLdb, you might want to ask the author (Andy Dustman). |
|||
|
You're probably better off using Python 2.x at the moment. It's going to be a while before all Python packages are ported to 3.x, and I expect writing a library or application with 3.x at the moment would be quite frustrating. |
|||
|
not sure if you're still looking, but you could try this: http://sourceforge.net/projects/mypysql/ |
|||||
|
I was looking for it too, but also found nothing, so I ported MySQL-python-1.2.3 to py3k you can read it here https://sourceforge.net/projects/mysql-python/forums/forum/70460/topic/3831691 |
|||
|
It appears the MySQLdb is pretty much a dead project. However, pymysql is a dbapi compliant, pure-python implementation of a mysql client, and it has python 3 support. EDIT: There's also MySQL Connector/Python. Same idea. |
||||
|
You can download the mysql-connector-python module compatible with Python3: Get the "source RPM", unzip it and use it (e.g. put it in your PYTHONPATH, and look at the examples). |
||||
|
There is an official Python 2/3 library, downloadable from MySQL website. Oracle released version 1.0.7 to public on 29 September 2012. It's pure Python and works with MySQL 4.1+ See more details here: http://dev.mysql.com/doc/connector-python/en/connector-python.html I'm currently using it with MySQL 5.5 and Python 3.2 with no problems thus far :) |
||||
|
Here is a working repository for Python 3: https://github.com/davispuh/MySQL-for-Python-3 |
|||
|