In my project, a requirement is to search if the database exists, if not, the program must create it... I've wrote a generic abstract class that creates a db, i've called DBCreator, then subclasses have the work of create the particular dbase using "CREATE table" SQL sentences... Ok, all of this works, but only if the database exists and has an Url...
Class.forName(driver); //<-- OK
connection = DriverManager.getConnection(url); // No OK
The cuestion is:
How i can create a new database from my application, using MySQL and get the connection to it?
Adios and Thanks