Re: running postgresql

From: Erik Jones <erik(at)myemma(dot)com>
To: post(at)upyours(dot)us
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: running postgresql
Date: 2007-11-05 19:51:04
Message-ID: 880A0E11-0A9F-42AC-BCE7-CD11D46AFEF3@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 5, 2007, at 12:36 PM, Charles wrote:

> I am running Gutsy (Ubuntu 7.10) and new to Postgresql. I followed the
> direction at https://help.ubuntu.com/community/PostgreSQL. I executed
> the following commands:
> sudo -u postgres createuser -D -A -P myuser
> sudo -u postgres createdb -O myuser mydb
> dagon(at)DagonUX32:~$ psql mydb
>
> and received the following error message:
> psql: FATAL: role "dagon" does not exist.
>
> Apparently Postgresql gets confused with my login name. Is this a
> Postgresql problem or a Gutsy problem?
>
> How do I establish a "role" that will let me setup different
> databases?

Is the name of the db user you created really myuser? If so you need
to specify the user to connect as to psql, otherwise it defaults to
your current system username:

psql -U myuser mydb

Erik Jones

Software Developer | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-11-05 19:54:15 Re: Is there a way to tell how far along a COPY is in the process?
Previous Message Scott Ribe 2007-11-05 19:39:17 Re: running postgresql