Re: [java ee programming] Trying to connect to a MySql database

2009-12-07 Thread Kamal Chandana Mettananda
It seems you haven't loaded the driver from your class. Class.forName("com.mysql.jdbc.Driver"); --- Kamal Mettananda http://lkamal.blogspot.com On Tue, Dec 8, 2009 at 5:16 AM, tedpottel wrote: > hHi, > I’m trying to connect to a MySql databse and keep gett

[java ee programming] Trying to connect to a MySql database

2009-12-07 Thread tedpottel
hHi, I’m trying to connect to a MySql databse and keep getting a java.sql.SQLException: No suitable driver found for jdbc:mysql:// localhost:3306/mysql This is what I did 1. installed the driver – a. copied the mysql-connector-java-5.1.10-bin to java/jre6/lib/ext folder 2. wrote the