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 > create database in using batch file?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-11, 07:53
bora.pradnya bora.pradnya is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
create database in using batch file?

How to create database using batch file.

I tried in following way,

C:\Program Files\PostgreSQL\8.4\bin>psql -W Mydatabase>create.sql
Password:

but then it is asking me password...it is not accepting my password..

Also Make clear whether the method I m using is correct or not.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 11-05-11, 08:27
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
What do you mean with "not accepting my password"?

And it should be
Code:
psql mydatabase < create.sql
(note the < instead of >)
Reply With Quote
  #3 (permalink)  
Old 11-07-11, 01:14
bora.pradnya bora.pradnya is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
C:\Program Files\PostgreSQL\8.4\bin>psql mydatabase < create.sql
Password: elitser

psql: FATAL: password authentication failed for user "Admin"

It gives me error........I am unable to understand which password do I enter here.

Thank you.
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