Using qgis 1.8 on Ubuntu 10.04 with Postgres 8.4.13
I am creating a new (and my first) Postgresql connection in qgis.
I can connect to the user and the db using the pgsql client.
jlam@lusk:~/programmation/Quantum-GIS/build-master/output/bin$ psql -U qgis -W qgis -p 5432
Mot de passe pour l'utilisateur qgis :
psql (8.4.13)
Saisissez « help » pour l'aide.
qgis=> \q
jlam@lusk:~/programmation/Quantum-GIS/build-master/output/bin$
But when testing the same parameters within the PostGIS connection creation dialog box, I get connection failure:
"La connexion échouée - Réglez la connexion et réessayez"
("Connection failed - Fix the connection and try again")
My pg_hba.conf file includes the line:
# "local" is for Unix domain socket connections only
local all qgis md5
Is there a way I can get qgis to send me back the error code and error string it gets from postgres, if its connecting at all, or to increase debug output on the console?
# IPv4 local connections: host all all 127.0.0.1/32 md5
# IPv6 local connections: host all all ::1/128 md5
– user1611925 Oct 11 '12 at 19:28IPv4
connection to usetrust
which should allow you to connect locally. – djq Oct 12 '12 at 1:56