Re: What packages I need to install to get Postgres working

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What packages I need to install to get Postgres working
Date: 2009-12-06 22:21:09
Message-ID: 4B1C2E55.606@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andre Lopes wrote:
> Hi,
>
> Thanks for your reply.
>
> I have installed postgresql 8.3, and now, what I need to do to get
> things working? Install PGAdmin? Or there are other steps I need to do
> to get things working? For example, how can I define the password for
> access as sysadmin?

yourusername $ sudo su - postgres
postgres $ psql
...
postgres=# create user yourusername with createdb createrole password
'newpassword';
CREATE USER
postgres= # create database yourusername with owner yourusername;
CREATE DATABASE
postgres=# \q
postgres $ exit
yourusername $ psql
...
yourusername=# ......

this will create a postgres user with the same username as your regular
login, a password, and the privileges to create more databases and users

you might need to add the ubuntu postgres bin directory to your user's
path, I dunno (I don't use ubuntu)

you will undoubtedly want to modify the pg_hba.conf file to suit your
connection and authentication requirements. see the online
documentation for more on this, its in the introduction/tutorial section

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Yves F. Barbier 2009-12-06 22:21:59 Re: What packages I need to install to get Postgres working
Previous Message Andre Lopes 2009-12-06 22:00:55 Re: What packages I need to install to get Postgres working