Re: Unable to Programatically Create DB Connection

2004-05-25 Thread William R. Mussatto
Scott D. Spiegler said: > I am trying to programatically connect to my DB, but I > am not sure what the connection string should be. I am > using this statement: > > conn = > > DriverManager.getConnection("jdbc:mysql://localhost/test?user=scott&password=cuatro"); > > I am getting this exception me

RE: Unable to Programatically Create DB Connection

2004-05-25 Thread Jan Goyvaerts \(jgoyvaer\)
Hi Scott, You must register the driver first. Example : import com.mysql.jdbc.Driver; ... public Connection getConnection () throws SQLException { DriverManager.registerDriver (new Driver()); Connection conn = DriverManager.getConnection (

RE: Unable to Programatically Create DB Connection

2004-05-25 Thread James Drabb
-Original Message- From: Scott D. Spiegler [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 11:37 AM To: [EMAIL PROTECTED] Subject: Unable to Programatically Create DB Connection > I am trying to programatically connect to my DB, but I am not sure what > the connection string should