[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Re: installing tutos2



On Fri, May 25, 2007 at 11:35:48AM -0400, Roberto C. Sánchez wrote:
> On Thu, May 24, 2007 at 11:39:31PM +0200, csanyipal wrote:
> > 
> > 
> > sudo dpkg-reconfigure tutos2
> > Document `TUTOS' is not installed, cannot remove.
> > Creating the POSTGRES TUTOS database...
> > ----------------------------
> > HOST:   localhost
> > PORT:   5432
> > DBUSER: www-data
> > DBNAME: tutos
> > ----------------------------
> > createdb: could not connect to database template1: could not connect to 
> > server: Connection refused
> > Is the server running on host "localhost" and accepting
> > TCP/IP connections on port 5432?
> >  Database tutos created !
> > createuser: could not connect to database template1: could not connect 
> > to server: Connection refused
> > Is the server running on host "localhost" and accepting
> > TCP/IP connections on port 5432?
> >  User www-data created !
> 
> What is in your /etc/postgresql/pg_hba.conf?


I have now installed postgresql-8.1:

/etc/postgresql/8.1/main/pg_hba.conf :

------------------>
# Database administrative login by UNIX sockets                         
local all postgres ident sameuser

# TYPE  DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all ident sameuser

# IPv4 local connections:
host all all 127.0.0.1/32 md5

# IPv6 local connections:
host all all ::1/128 md5

# I edited this for tutos:                          
host  tutos   127.0.0.1  255.255.255.255   trust
------------------<


-- 
Regards, Paul Csányi
http://www.freewebs.com/csanyi-pal/index.htm



Reply to: