PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 20th, 2001, 04:28 PM
frogman frogman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 10 frogman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I can log in to psql, having granted myself superuser privileges, but pgaccess doesn't recognize me as a valid user. I'm confused about this. With mysql, I gave a username, and password, which I could use for things like perl DBI,and PHP scripts, but Postgresql didn't prompt me for a password. Instead it just used my login in linux to let me in. This is fine until I need to actually tie postgresql into a web page.

The hostname of my computer is frogman, and postgres seems to be looking for localhost, but if I put in frogman with pgaccess, it gives me an error asking if the postmaster is running (with -i) at 'localhost' and accepting connections on TCP/IP port '5432'? Any help with this is appreciated. Thank you.

Bob

Reply With Quote
  #2  
Old February 28th, 2001, 07:19 PM
tfillmore tfillmore is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 2 tfillmore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink

re: '-i' message:
this is the generic message indicating that Postgres is listening only for connections to localhost. If you need it to listen for connections using any other machine name you have to start the Postmaster with something like:

postmaster -i mydomain.notyours.com -D /path/to/the/data

Note the capital D and lowercase i...

With regard to passwords you should look for the file named pg_hba.conf in the data folder; Postgres does things a bit different and it can be somewhat confusing. It's worth the effort, though.

Finally - there are some really good documents on the Postgres homesite, I think you can find most of your answers there to questions like these. And, there is at least one book available on Postgres that are pretty well written.

Good luck!!

Reply With Quote
  #3  
Old May 29th, 2001, 02:29 AM
Just Bill Just Bill is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Detroit, MI, USA
Posts: 1 Just Bill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Just Bill
Question

Could you pass along the name of that PostgreSQL book?

Reply With Quote
  #4  
Old May 29th, 2001, 12:11 PM
tfillmore tfillmore is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 2 tfillmore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PostgreSQL Bookk title

The book I bought is:

'PostgreSQL - Introductions and concepts' by Bruce Momjian
ISBN 0-201-70331-9

Good luck!

Tom

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Postgresql username, password, and host for pgaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT