Difference between revisions of "Connecting to Mysql"

From MyWiki
Jump to: navigation, search
(Created page with "<source lang="java"> import.java.sql.*; { Connection con = null; Statement stmt = null; ResultSet rs = null; String userName = ""; String passWord = ""; String url = "jdbc:m...")
(No difference)

Revision as of 12:42, 19 October 2014

import.java.sql.*;
 
{
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String userName = "";
String passWord = "";
String url = "jdbc:mysql://localhost<dbname>"