From: | Thom Brown <thom(at)linux(dot)com> |
---|---|
To: | Mike Thomsen <mikerthomsen(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: "Database does not exist"... but it does exist |
Date: | 2011-01-21 17:09:53 |
Message-ID: | AANLkTinq_7Mu6oCco9wGQys-ScEJcvHbPVa7Nm-zUnJH@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On 21 January 2011 17:01, Mike Thomsen <mikerthomsen(at)gmail(dot)com> wrote:
> I'm running into a bizarre issue with "database XYZ does not exist."
> I've done a lot of searching, but can't find the cause. For the sake
> of reference, this is PG 8.4.6 running on RHEL 5.4.
>
> Here's what I've done so far with md5 authentication enabled:
>
> psql -U postgres -c "create user miket with password 'miket'"
> createdb testingdb -U postgres
> psql -U postgres -d testingdb -c "create schema testingdb authorization miket"
> psql -U postgres -d testingdb -c "grant all privileges on database
> testingdb to miket"
>
> The last statement returns the following:
>
> ERROR: database "testindb" does not exist
>
> When I run:
>
> psql -l -U postgres
>
> testindb most certainly does exist.
>
> Any help on resolving this would be greatly appreciated.
>
> Thanks,
>
> Mike
Are you sure that's not a typo. Your statement says "testingdb" but
the error says "testindb".
--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Yves F. Barbier | 2011-01-21 17:13:38 | Re: "Database does not exist"... but it does exist |
Previous Message | Vibhor Kumar | 2011-01-21 17:09:11 | Re: "Database does not exist"... but it does exist |