Mysql Connection

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);
}

Tags:

One Response to “Mysql Connection”

  1. Mr WordPress 28. Mar, 2010 at 3:49 am #

    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.

Leave a Reply