Could you help with this problem.
I\'m trying to create and then use a database called TIGER.
I have no problem if I create the database in MySQL and it runs
The easy approach to problem is :
package Database;
import java.sql.*;
public class Database {
public static void main(String[] args) {
final String URl = "JDBC:mysql:/localhost:3306/info";
final String id = "root";
final String password = "";
try
{
Connection con1 = DriverManager.getConnection(URl,id,password);
Statement s1 = con1.createStatement();
String s = "CREATE DATABASE CLASSIFIED";
s1.executeUpdate(s);
}
catch(SQLException err)
{
System.out.println(err.getMessage());
}
}
}