I am trying to write a JSP program that will connect to my database. I use NetBeans and I have created a database in MySQL called School.
I looked at some sample codes online and did not understand the following;
1. Class.forName("org.gjt.mm.mysql.Driver"); What does the "org.gjt.mm.mysql.Driver" stand for? Other programs I looked at just have "Driver".
2.dbconn = DriverManager.getConnection("jdbc:mysql://localhost/mydatabase"; Here, i guess the program is trying to connect to the database but my question is how do you configure Tomcat to work with MySQL?