Re: mysql in java error connection

public <[email protected]>
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
You're right, that is the problem. The message about the missing  
driver is misleading, that's just because the JDBC driver can't parse  
the URL you're providing, so it tells the DriverManager that it's not  
responsible for it.

The correct URL format is

jdbc:mysql://host-ip-number:3306/databasename

I would recommend putting the username and password into the call to  
get the connection, instead of embedding them into the URL.

--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293


On Dec 5, 2006, at 11:27 AM, SOF - Dragone Jose Luis wrote:

> public static final String URL_JDBC =
> "jdbc:mysql:host-ip-number:3306:databasename:username:password"; //  
> I think
> the problem is here


-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.