|
zxJDBC and mysql connection woes: msg#00044lang.jython.user
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> |
|---|---|---|
| Previous by Date: | Any limitation on on no. of lines being interpreted, G. Prasad |
|---|---|
| Next by Date: | Socket Programming, Vijay Anand R. |
| Previous by Thread: | Any limitation on on no. of lines being interpreted, G. Prasad |
| Next by Thread: | Socket Programming, Vijay Anand R. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |