pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jehan procaccia <jehan.procaccia@free.fr>
To: Ben Kim <bkim@coe.tamu.edu>
Cc: Martin Fandel <martin.fandel@alphyra-evs.de>
Cc: pgsql-admin@postgresql.org, Lydie.Soler@inapg.inra.fr, Yves Marteau <marteau@inapg.fr>
Subject: Re: restore database from bare files
Date: Fri, 01 Jul 2005 11:07:06 +0200
Message-ID: <42C507BA.7070304@free.fr> (raw)
In-Reply-To: <Pine.GSO.4.10.10506301345100.25496-100000@edsun.coe.tamu.edu>
References: <Pine.GSO.4.10.10506301345100.25496-100000@edsun.coe.tamu.edu>

Ben Kim wrote:

>>ezpublish_db-# ALTER USER  ezpublish SET PASSWORD secret;
>>ERROR:  syntax error at or near "$" at character 1
>>    
>>
>
>I wonder why you have "ezpublish_db-#" instead of "ezpublish_db=#"? I just
>noticed it, and to me it happens usually when something's been carried
>over from the previous line. My 2 pence...
>  
>
indeed I typed a comment before without ending it with ";" that might 
explain the "syntax error" !
for my pb, I have part of an explanation -> I forgot to recreate the 
user ! so here I go again in one command to create user and set password:
$ createuser ezpublish -P
Enter password for new user: *******
Enter it again: *******
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
then:
$ psql ezpublish_db -U ezpublish -W
Password: *******
psql: FATAL:  IDENT authentication failed for user "ezpublish"
I really don't understand :-(
If I go with postgres user, no pb:
$ psql ezpublish_db -U postgres
Welcome to psql 7.4.8, the PostgreSQL interactive terminal.

if it can help to debug, here's my users list:
ezpublish_db=# select * from pg_user;
 usename  | usesysid | usecreatedb | usesuper | usecatupd |  passwd  | 
valuntil | useconfig
-----------+----------+-------------+----------+-----------+----------+----------+----------- 

postgres  |        1 | t           | t        | t         | ******** |  |
ezpublish |      100 | t           | f        | f         | ******** |  |
(2 rows)

If you have an idea , I'll really apreciate

Thanks !.

>
>Regards,
>
>Ben Kim
>Developer
>College of Education 
>Texas A&M University
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>  
>




view thread (12+ messages)  latest in thread

Message-ID: <42C507BA.7070304@free.fr>
Permalink:  ../42C507BA.7070304@free.fr/
Also on:    postgresql.org/message-id/42C507BA.7070304@free.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jehan.procaccia@free.fr, bkim@coe.tamu.edu, martin.fandel@alphyra-evs.de, marteau@inapg.fr
  Subject: Re: restore database from bare files
  In-Reply-To: <42C507BA.7070304@free.fr>
  References: <Pine.GSO.4.10.10506301345100.25496-100000@edsun.coe.tamu.edu> <42C507BA.7070304@free.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox