-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shankar Unni wrote:
>>Connection conn = DriverManager.getConnection("jdbc:mysql:TestDB");
>
>
> That's not what a valid JDBC URL looks like for MySQL. The official spec
> is:
>
>
> jdbc:mysql://[hostname][:port]/dbname[?param1=value1][¶m2=value2]...
>
> The shortest form of this for you, if the client is on the same host as
> the mysql server, is
>
> jdbc:mysql:///TestDB
>
> It's better form to mention at least the hostname, though, to make this
> explicit:
>
> jdbc:mysql://localhost/TestDB
>
> Unfortunately the only documentation available for Connector/J is on the
> sourceforge site for an old version of mm.mysql driver:
>
> http://mmmysql.sourceforge.net/doc/mm.doc/book1.htm.
>
> Mark: the www.mysql.com site has *no* pointers to this documentation.
> Any chance of getting an updated version of this documentation into the
> mysql.com site?
The README that comes with Connector/J is always up-to-date and quite
verbose and includes a troubleshooting section. There is web-based
documentation in the works, but for now, your best bet for timely
information is the README.
-Mark
- --
MySQL 2003 Users Conference -> http://www.mysql.com/events/uc2003/
For technical support contracts, visit https://order.mysql.com/?ref=mmma
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mark Matthews <mark@stripped>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java
/_/ /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA
<___/ www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.1.90 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+STCbtvXNTca6JD8RAgxVAJ9UllqQXuns/EsHfJWQ2DZ8PQugkACeP7OF
1zJSa53LjeAN94TflBf9Jq8=
=f4Ij
-----END PGP SIGNATURE-----