MySQL Forums
Forum List  »  Connector/Python

Re: Help with Jython and MySQL in Debian GNU/Linux
Posted by: David Michal
Date: September 06, 2005 11:23AM

Hello,
can you put there a piece of code you're calling SQL connect with?

BTW:
I'm using this way:
from com.ziclix.python.sql import zxJDBC
d = "jdbc:mysql://localhost:3306/DatabaseName"
u, p, v = "root", "", "org.gjt.mm.mysql.Driver"
db = zxJDBC.connect(d,u,p,v, CHARSET="iso-8859-2")

cursor = db.db.cursor()
cursor.execute("select * from test")
result = cursor.fetchall()
cursor.close()

Options: ReplyQuote


Subject
Written By
Posted
Re: Help with Jython and MySQL in Debian GNU/Linux
September 06, 2005 11:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.