Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with Postgresql: could not connect to server...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Tue Jul 16, 2002 11:08 am    Post subject: Problem with Postgresql: could not connect to server... Reply with quote

I emerged postgresql 7.2.1r1 with no errors.

then i started the postgresql-server with the command: "/etc/init.d/postresql start" - no problem again.

then i logged in as the PostgreSQL-Superuser "postgres" and tried to create a user (with "createuser")
I got the following errormessage:

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I searched in this forum for a solution:
i followed the tip from this topic: https://forums.gentoo.org/viewtopic.php?t=1007&highlight=postgresql
and executed the folowing:
ebuild /var/db/pkg/dev-db/postgresql-7.2.1-r1/postgresql-7.2.1-r1.ebuild config

then i tried again to create a user: i got the same error... :(

does anyone have an idea how to solve this problem?

thanks for your help!
Back to top
View user's profile Send private message
stary
n00b
n00b


Joined: 12 Jul 2002
Posts: 30
Location: Stockholm

PostPosted: Fri Jul 19, 2002 6:54 pm    Post subject: My solution Reply with quote

Try restarting the server - the described solution in the post you linked to worked for me, so my guess is that you have a server still running on the old settings (if it's running at all).
Back to top
View user's profile Send private message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Fri Jul 19, 2002 8:01 pm    Post subject: Reply with quote

I don't know what the problem was.. - i installed the whole system again with the useflag for postgresql. - an older version of postgresql (7.1.3-r4) was installed automatically (i think when installing kde!?... doesn't matter..) - and than it worked without a problem.

I don't know if it the error was caused because of the missing use-flag "postgres" or the ebuild script of the 7.2.1r1 verion was defect..


greetings,
Gernot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum