pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray Hunter <rhunter@venticon.com>
To: Jesus Rios <galiza-vermelha@wanadoo.es>
Cc: POSTGRESLQ-PHP <pgsql-php@postgresql.org>
Subject: Re: problems when i try to connect to my Databasse
Date: 18 Dec 2002 13:51:17 -0700
Message-ID: <1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com> (raw)
In-Reply-To: <200212181838.gBIIc3M0030993@smtp.wanadoo.es>
References: <200212181838.gBIIc3M0030993@smtp.wanadoo.es>

You should create another user that has atleast read access to the
database...

The user "postgres" is kinda like the root user, so that user should not
be used.  

Read here: http://www.postgresql.org/idocs/index.php?user-manag.html

Then u can use that user in your php scripts.



On Wed, 2002-12-18 at 11:42, Jesus Rios wrote:
> 
> Hi........
> 
> Firts, sorry with my English. I am from Galician Country.
> 
> My problem is :
>  i have only one user( in my postgresql)  known as posgres.
> # su postgres
> #passwd *****
> 
> once , i am user postgres , i write : #psql mybd  and it does not ask me for
> the BD'pasword ( postgres is like a user root)
> The problem comes when i am  running a script php , where I try to connect to
> my BD-----> $db=pg_connect("user=$user dbname=$dbname "). This refuse the
> connection because  I dont have the password.!!!!!.
> 
> How can i get it??????????????????????
> 
> 
> 
> Thanks...................
> 
>  NUNCA MAIS!!!! , GOVERNO DIMISSOM!!!!!        FORÇA GALIZA!!
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
-- 

Ray Hunter
email:	rhunter@venticon.com
www:	http://venticon.com




view thread (4+ messages)

Message-ID: <1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com>
Permalink:  ../1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com/
Also on:    postgresql.org/message-id/1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com

 · 

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-php@postgresql.org
  Cc: rhunter@venticon.com, galiza-vermelha@wanadoo.es
  Subject: Re: problems when i try to connect to my Databasse
  In-Reply-To: <1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com>
  References: <200212181838.gBIIc3M0030993@smtp.wanadoo.es> <1040244677.31681.8.camel@pclnxrhunter.digitalglobe.com>

* 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