Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7554967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:28:38+00:00 2026-05-30T11:28:38+00:00

Postgresql is not cooperating. I did a yum of postgresql and postgresql-server and that

  • 0

Postgresql is not cooperating. I did a yum of postgresql and postgresql-server and that seemed to be fine. I then tried to “ and it gives and error message:

createdb: could not connect to database postgres: FATAL: Ident
authentication failed for user “postgres”

If I remove the user it gives the same error just with my username. I’m on a Centos OS. I want it to work with apache and php after I figure out to create a database.

When I run /usr/bin/postgres it gives an error:

/usr/bin/postgres does not know where to find the server configuration
file. You must specify the –config-file or -D invocation option or
set the PGDATA environment variable.

Can’t figure it out. Did I miss a configuration step? I thought doing yum would work out of the box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:28:40+00:00Added an answer on May 30, 2026 at 11:28 am

    Sounds like it is configured for ident authentication which requires you to login as the linux user postgres ie:

    su postgres
    

    and then run the createdb command. Other method would be to locate your pg_hba.conf probably in something like /var/lib/pgsql/9.1/data and switch to trust authentication. That way you can connect using -U postgres with any linux account and it will let you in without verifying the password. Then you can setup required usernames and passwords and then switch to something more secure like md5.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing some PostgreSQL functions that I did not write, one of which
I have a query that works on Postgresql 7.4 but not on Postgresql 8.3
I am aware that MySQL and PostgreSQL[1] do not have that concept, so I
I am working on a postgresql query that i am not sure how to
How can I tell if my Postgresql server is running or not? I'm getting
I am using postgreSQL. I have a column that: NOT NULL However when I
I have an application that can not afford to lose data, so Postgresql is
I cannot install postgresql with homebrew. $ brew install postgresql Error: Could not create
Quite recently my PostgreSQL 8.2.4 logs such errors: ERROR: could not open relation with
In PostgreSQL 8.4, given a date, if that date is not a Friday, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.