[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sql-postgresql authentication failure
From: |
Sebastian P. Luque |
Subject: |
sql-postgresql authentication failure |
Date: |
Thu, 24 May 2007 17:04:23 -0500 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.990 (gnu/linux) |
Hi,
I'd like to use `sql.el' to connect to local postgresql databases. I'm
accessing the server through my normal user account, although I've added
myself as a super user in the postgresql server. In a shell, I can
connect to a 'test' database with:
---<---------------cut here---------------start-------------->---
$ psql test
Welcome to psql 8.2.4, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
test=#
---<---------------cut here---------------end---------------->---
However, when I try to do it from Emacs with `sql.el', I have:
M-x sql-postgresql
In the minibuffer:
"User: myuser"
"Database: test"
"Server: localhost"
"Password for user myuser: secret"
and the message from the server:
Password for user myuser:
psql: FATAL: password authentication failed for user "myuser"
Process SQL exited abnormally with code 2
Password for user sluque:
psql: FATAL: password authentication failed for user "myuser"
Process SQL exited abnormally with code 2
I'm using:
,-----[ psql --version ]
| psql (PostgreSQL) 8.2.4
| contains support for command-line editing
`-----
Any ideas what might be wrong? Thanks.
Cheers,
--
Seb
- sql-postgresql authentication failure,
Sebastian P. Luque <=