Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

API to create databases?

 
Siegfried Heintze
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic