public static Connection getConnection() throws Exception {
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost/ev?";
String username = "root";
String password = "0532";
Class.forName(driver); // load Oracle driver
return DriverManager.getConnection(url, username, password);
}
Mysql Connection
by admin on 28. Mar, 2010 in JSP Basics
Tags: mysql
One Response to “Mysql Connection”
Leave a Reply
Categories
Recent Posts
Recent Comments
- mikkom on Pearson correlation coefficient
- teddy on Mysql + JSP Example
- Mr WordPress on Mysql Connection

Hi, this is a comment.
To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.