|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey there,
New to this forum, looks like good place to ask this; Want to run PostgreSQL on my Mandrake 7.0 Linux box to learn it. Created login account of postgres. When I try this command to get the database going I get this error; # psql test psql: connectDBStart() -- connect() failed: Connection refused Is the postmaster running at 'localhost' and accepting connections on Unix socket '5432'? createuser: creation of user "tester1" failed Any idea what I can do to fix this? I'd really like to learn this database (already been using MySQL). Thanks. |
|
#2
|
||||
|
||||
|
The answer was in this post http://forums.devshed.com/showthrea...6743&forumid=21 just 3 posts away from yours.
If it doesn't fit, then feel free to ask.
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) |
|
#3
|
|||
|
|||
|
psql error
Hi, thanks for the info, but no, I still get the same error. I tried both the PGOPTS="" (there was no commented version but I tried adding this anyway) and -i 5432 to both the
postmaster.opts.default and postmaster.opts. Any other suggestions? |
|
#4
|
||||
|
||||
|
Maybe a stupid question, but ...
Did you restart Postgresql, in order to make it read the new configuration?
|
|
#5
|
|||
|
|||
|
postres error
If you mean logging out of the postgres account, going back in and starting # psql test, yes I did.
|
|
#6
|
||||
|
||||
|
No, I mean restarting the whole postgresql server.
|
|
#7
|
|||
|
|||
|
psql
Just so I'm sure what you mean, do you want me to reboot the linux PC that has PostgreSQL on it? Or is there a way to do it while leaving the machine running?
|
|
#8
|
||||
|
||||
|
You can do it without rebooting, but I don't remember the command (kill or pgsql -start ???) take a look at www.postgresql.org , under the Users area there is a searchable documentation with users comments, please add your too, it could be useful to others.
Regards |
|
#9
|
||||
|
||||
|
Well, here is the solution for you:
pg_ctl -- Starts, stops, or restarts postmaster pg_ctl start [-w] [-D datadir] [-l filename] [-o options] [-p path] pg_ctl stop [-W] [-D datadir] [-m s[mart] | f[ast] | i[mmediate] ] pg_ctl restart [-w] [-D datadir] [-m s[mart] | f[ast] | i[mmediate] ] [-o options] pg_ctl status [-D datadir] Taken from the manual |
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > psql test error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|