If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
How to create a new database within a database connection using JDBC.
The connection is sucessful & after that, I tried to create another databsae, i get a SQLException as ... Cannot use database command in an exlplicit database connection...
I don't think you can.
There are two ways to connect with jdbc.
What is the url you use?
Try connecting to the server or disconnecting from the database before using the create statement.