logo       

zxJDBC and mysql connection woes: msg#00044

lang.jython.user

Subject: zxJDBC and mysql connection woes

Jython 2.1b1 on java1.4.0-beta3 (JIT: null)
Type "copyright", "credits" or "license" for more information.
from com.ziclix.python.sql import zxJDBC
d, u, p, v = "jdbc:mysql://localhost/test", "me", "secret", "org.gjt.mm.mysql.Driver"
db = zxJDBC.connect(d, u, p, v)

looks easy huh?

Wrong, No matter what I get an access denied error from mysql,'
Why?
Because localhost or domain is always appended to the end of connection string.

Therefore instead of:

mysql -ume -psecret database

you get :

mysql -ume@localhost -psecret database

Other than changing the mysql db table, is there a work around ?

Thanks Chris






-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise