So I guess it's pretty clear from the title, I'm trying to make a servlet that will connect to a local database, everything is under XAMPP (Tomcat, Apache and MySql I mean). But when I try to connect with :
- Code: Select all
m_Connection = DriverManager.getConnection("jdbc:mysql:" + url + "test?user="+ login +"&password=" + password);
I get a SQLException : No suitable driver
So of course I loaded the driver before, I tried :
-com.mysql.jdbc.Driver
-org.gjt.mm.mysql.Driver
I tried with the newInstance() method and with both driver at the same time (I know it sound stupid but who knows =P)
Does anybody know what is appening ?
Edit: forgot to mention the XAMPP version it's 1.7.2 (the last stable version if I'm correct)