×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Cannot connect to database thorugh psql

Cannot connect to database thorugh psql

Cannot connect to database thorugh psql

(OP)
I have created a new database in my system through the initdb command. When I issue pg_ctl start the postmaster is starting properly. However when I am issuing the command
psql dbname
the system is saying
"the database name does not exist in the system catalogue."
Even when I am the postgres super user I still cannot connect to the system database bundled with the distribution of Mandrake 9. Please help
OS -- Mandrake 9
database -- postgreSQl
CPU -- Pentium 4
Thanks and regards
Partha Sarathi Chakraborty

RE: Cannot connect to database thorugh psql

You need to use the 'createdb' command to create a new database. Initdb is for setting up a new complete PostgreSQL system.

createdb mydatabase

psql mydatabase


Rebmember, 'createdb' must be performed as a user with rights to run PostgreSQL itself. Usually that is the 'postgres' user on a system.

-------------------------------------------

Big Brother: "War is Peace" -- Big Business: "Trust is Suspicion"
(http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html)

RE: Cannot connect to database thorugh psql

(OP)
Actually I want to start a whole new database system whose priviledged user should not be postgres. Please mention the steps to perform.
If I have to go for a createdb command by postgres do I have to mention a seperate port number.Thanks and regards
Partha

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close