Re: PostGreSQL - Accessing It

From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: Michael <michael(at)transmissionsllc(dot)com>
Cc: "pgsql-general (at) postgresql (dot) org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostGreSQL - Accessing It
Date: 2003-08-13 09:42:36
Message-ID: 20030813104236.E31402@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 12/08/2003 23:51 Michael wrote:
> I installed RedHat 9.0 and found that PostGreSql was installed with the
> OS. I started the service, tried to create a database.
>
> I cannot access/create a database from root or any of the other accounts
> I have setup for RH9. I noticed that there is a user setup for postgres
> (I guess this part of the postgres install) but can't login as that
> user. I can't even read or change the password. How do I get at
> PostGreSql?

From root, simply su postgres.

What I usually do then is use PostgreSQL's createuser command to create a
new super-user (i.e., one which can create new databases and new users).
On my developemt box, I make this the same as my login name. On production
boxes, we create a specific dba account an use that.

>
> Secondarily - does anyone know if JDBC drivers are part of the RH9
> PostGreSql install?

Yes but its in a separate RPM (on disk 2 IRC).
HTH

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+

In response to

Browse pgsql-general by date

  From Date Subject
Next Message psql-mail 2003-08-13 11:26:09 FTI problems
Previous Message Alexander 2003-08-13 09:18:53 Re: TSearch2