Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
[root@localhost local]# psql
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"?
It did not show the service something like pgsql..! so I think it is not running!
But Why it was prompt as following msg when I typed psql?
[root@localhost local]# psql
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"?
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
You have to start the postmaster (the daemon that accepts client connections) before you can connect to the PostgreSQL server. I do this through the pg_ctl utility that is installed in /usr/local/pgsql/bin (it might be somewhere else on your system, depending on how stuff is installed). There's copious documentation about this at the PostgreSQL Web site, which I suggest you read if you're having trouble. I've only tinkered with Postgres, and never used it seriously, so I'm afraid I can't help much more than this.
The difference between the RPM and the tar.gz is the RPM is already compiled and configured to run. The tar.gz is the source code which needs to be compiled and configured. As a newbie I would use the RPM and then upgrade once I've become more familar with the server
psql is the command line client and as stated postmaster is the database server. Since the server is a network application it runs by default on port 5432.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.