Two Laptop Bag*
The moose likes JDBC and the fly likes API to create databases? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "API to create databases?" Watch "API to create databases?" New topic
Author

API to create databases?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 381
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
Greenhorn

Joined: May 31, 2002
Posts: 23
hi
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
regards
riaz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: API to create databases?