Search Postgresql Archives

Re: Getting started with first user.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/01/18 09:48, Agnar Renolen wrote:
Then trying with the -U postgres option.

root> createuser -U postgres me
createuser: could not connect to database postgres: FATAL: Peer authentication failed for user "postgres"

You need to specify the host as well, to force a TCP/IP connection:

  createuser -U postgres -h localhost me

The default pg_hba.conf on Debian uses a Unix socket and peer authentication, hence the error you're seeing.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@xxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux