0

Hi everyone,

well, my problem would be:There is a database server which contains no databases. So there is nothing to connect to (as it is needed by the DriverManager.getConnection instruction). How can I create a new database under these circumstances?

Thanks,

Chaster

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Chaster
0

With installation of MySQL server by default you get these databases mysql and information_schema (as long admin did not remove them). Simply use them in connection string and then execute create database command like in this example

0

Hi everyone,

well, my problem would be:There is a database server which contains no databases. So there is nothing to connect to (as it is needed by the DriverManager.getConnection instruction). How can I create a new database under these circumstances?

Thanks,

Chaster

try logging into your database

>mysql -u root -p [whatever_your_password]

Once you're in, just do this:

> create database [your_database_name]

Let me know if you get stuck, I'll try to help.

Josh

0

With installation of MySQL server by default you get these databases mysql and information_schema (as long admin did not remove them). Simply use them in connection string and then execute create database command like in this example

Thanks a lot, that did the trick...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.