Archive pour 21 septembre 2009

Ajouter un compte utilisateur à postgres

Lundi 21 septembre 2009
$ su postgres
$ createuser coincoin
$ psql
postgres=# alter user coincoin with password 'panpan';
ALTER ROLE
postgres=# \q
$ vi $PATH_CONF_PG/pg_hba.conf
(ajouter cette ligne)
host    all     coincoin       0.0.0.0/0       password

Maintenant coincoin pourra se connecter en utilisant le mot de passe panpan à toutes les bases.