Bug #3536 Change in Conn/J connection string - database required
Submitted: 22 Apr 2004 9:07 Modified: 24 Apr 2004 8:55
Reporter: David Reed Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Documentation Severity:S2 (Serious)
Version:java-3.1-nightly-20040422 OS:
Assigned to: Mark Matthews CPU Architecture:Any

[22 Apr 2004 9:07] David Reed
Description:
The 3.1.1 build of the Connector/J allowed the database name to be left out of the connection string.  This build mandates the database name be part of the URL.  The documentation says it's optional.  Mandating a database in the connection string makes it difficult to automatically connect to create a new database - should mysql be used when creating a new DB?

How to repeat:
Try using:
jdbc:mysql://localhost/
as a connection string.

Suggested fix:
Change the documentation.
[24 Apr 2004 8:55] Mark Matthews
This is fixed in the nightlies of Connector/J 3.1 and 3.0. See http://downloads.mysql.com/snapshots.php