Re: [GENERAL] pg_hba.conf and crypt

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: [GENERAL] pg_hba.conf and crypt
Дата
Msg-id 199905062105.WAA12878@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Re: [GENERAL] pg_hba.conf and crypt  (Kevin Lo <jwlo@ms11.hinet.net>)
Список pgsql-general
Kevin Lo wrote:

  >Hi, Oliver,
  >
  >I follow your instructions to do on my local machine, edit the file
  >pg_hba.conf:
  >
  >local        all                                         password
  >host         all   127.0.0.1     255.255.255.255         crypt
  >
  >then I connect with psql, use the -u option, I got the following errors:
  >
  >% psql -u
  >Username: postgres
  >Password:
  >
  >User authentication failed
  >Connection to database 'postgres' failed.
  >User authentication failed

You must set a password for postgres before you change pg_hba.conf, using
`ALTER USER postgres WITH PASSWORD xxxxx'.  It sounds as if you haven't
done this.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "If it is possible, as much as it depends on you, live
      peaceably with all men."        Romans 12:18



В списке pgsql-general по дате отправления:

Предыдущее
От: Kevin Lo
Дата:
Сообщение: Re: [GENERAL] pg_hba.conf and crypt
Следующее
От: S P Arif Sahari Wibowo
Дата:
Сообщение: Restore from dump file: parse error