[Cartoweb-users] How can i create a Postgresql database ?

Mathieu Coudert m.coudert at oieau.fr
Fri Apr 28 07:28:58 EDT 2006


Hi,

 

You have to connect you with a different user. The user “root” is not
allowed to create db with postgresql.

Try to connect you with the user “postgres” whether he exists.

 

In order to connect you in super user do:  su postgres and then createdb
demo_plugins

Before you have to check if the superuser postgres is created : cat
/etc/passwd | grep postgres , 

you can create it by the command : useradd -g postgres -d
/var/lib/postgresql postgres

 

You can after check the list of user in postgresql by the command : psql
template1 -c "SELECT * from pg_user"

 

Regards,    

Mathieu

 

 

 

  _____  

De : cartoweb-users-bounces at lists.maptools.org
[mailto:cartoweb-users-bounces at lists.maptools.org] De la part de Baroudi
Malek
Envoyé : vendredi 28 avril 2006 12:47
À : cartoweb-users at lists.maptools.org; catoweb
Objet : [Cartoweb-users] How can i create a Postgresql database ?

 

The following command $ createdb demo_plugins , is not yet .
createdb: céchec lors de la connexion à la base de données template1: FATAL:
l' utilisateur «root» n'existe pas .
can you help me please ?



-- 
"Qui allume sa bougie à la mienne reçoit de la lumière sans me plonger dans
l'obscurité
"
                                                 ' Thomas Jefferson' 
-- 
Ce message a ete verifie par  <http://www.mailscanner.info/> MailScanner
pour des virus ou des polluriels et rien de suspect n'a ete trouve. 

 

Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et privés.Toute publication, utilisation ou diffusion, meme
partielle, doit etre autorisee. 

 

Any data and information contained in this electronic mail is personal,
confidential and private. Any total or partial publication, use or
distribution must be authorized. 


-- 
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060428/fbf34c74/attachment.html


More information about the Cartoweb-users mailing list