MySQL - Jython2.2

Carsten Haese carsten at uniqsys.com
Fri Jun 15 10:44:50 EDT 2007


On Fri, 2007-06-15 at 07:31 -0700, HMS Surprise wrote:
> I thought I had a winner mySql-python but it require2 python 2.3-5 and
> the tool I am using (maxq) is based on jython 2.2. Is there another
> way that I could perform queries from python?

The low version number is not your main problem. The main problem is
that Jython is based on Java, and it can not use CPython modules such as
MySQL-python. You'll need JDBC:

http://dev.mysql.com/downloads/connector/j/5.0.html
http://www.jython.org/docs/zxjdbc.html

I have not tried this combination myself, so your mileage may vary, but
in theory this should work.

Good luck,

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list