try adding a Class.forName("com.mysql.jdbc.Driver").newInstance()
before DriverManager.getConnection(... It should register the mysql jdbc driver. > -----Messaggio originale----- > Da: Scott D. Spiegler [mailto:[EMAIL PROTECTED] > Inviato: martedi 25 maggio 2004 18.37 > A: [EMAIL PROTECTED] > Oggetto: 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 be. I am > using this statement: > > conn = > > DriverManager.getConnection("jdbc:mysql://localhost/test?user=scot > t&password=cuatro"); > > I am getting this exception message: > > database_test.DBConnector > SQLException: No suitable driver > > SQLState: 08001 > > VendorError: 0 > > Any idea as to what the correct, connection string > might be? > > Thanks, Scott > > ===== > We don't see things as they are, we see things as we are. > --Anais Nin > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]