File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes API to create databases? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "API to create databases?" Watch "API to create databases?" New topic

API to create databases?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 397
I thought I already posted this question but I don't see it here.
Does JDBC have the capability to let me create databases programmatically so I can completely automate the installation of an application?
Could I even have my application automatically start up the MySQL process if it is not already running? How would I do that?
I just started reading about JDO -- perhaps that is what it is for.
Riaz Mohamed

Joined: May 31, 2002
Posts: 23
Well u could create a database in mysql when u start the installation of your application .All you have to do is execute a jdbc query to create a database (create database database name We have done this before. And you could always. You could start mysql by starting the process. Use runtime process in java , would help. Lemme know if you do want the code for the same
I agree. Here's the link:
subject: API to create databases?
jQuery in Action, 3rd edition