String url = "jdbc:mysql://localhost:3309/";
String db = "search";
String driver = "com.mysql.jdbc.Driver";
String user = "root";
String pass = "root";
try{
Class.forName(driver);
con = DriverManager.getConnection(url+db, user, pass);
try{
Statement stmt = con.createStatement();
String table = "CREATE TABLE Employee(SSN integer,Name VARCHAR(40),DOB VARCHAR(20),Address VARCHAR(100))";
stmt.executeUpdate(table);
}catch (SQLException s){
}
The above code is tested code, it should work. Here db="search" is your database name. Let me know if you are successful
SCJP(1.4), SCWCD, Oracle 9i SQL certified, Oracle PLSQL Developer Certified Associate