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.

 
Go Back  dBforums > Database Server Software > PostgreSQL > automatically create a database right after installing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-11, 06:31
shilpa24 shilpa24 is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
automatically create a database right after installing

I am trying to automatically create a database right after installing
postgres8.4 from windows command prompt .i already install postgresql 8.4 silently from command prompt, but now i have to create a database.
actually i have to do both the things installing postgresql8.4 and creating database wtih single command .what is the best way to do this ?

Reply With Quote
  #2 (permalink)  
Old 04-29-11, 13:01
futurity futurity is offline
Registered User
 
Join Date: May 2008
Posts: 270
Create a shell script (I guess in windows that would be BAT file) that:

1) Runs the installer
2) Creates the database
Reply With Quote
  #3 (permalink)  
Old 04-30-11, 01:09
shilpa24 shilpa24 is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
thanks

hi,
thanks a lot its work
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On