erreur connection db avec psycopg2
windows xp postgresql 4.1.1 python 2.6
j'essaie de me connecter à une base mais échec.
dbcon = psycopg2.connect("host=localhost port=5432 dbname=postgres user=postgres password=psgshd")
psycopg2.OperationalError: FATAL: aucune entrée dans pg_hba.conf pour l'hôte « ::1 », utilisateur « postgres »,
base de données « postgres », SSL inactif
dans pg_hba.conf
host postgres postgres 127.0.0.1/32 trust
Merci.
Merci DelphiManiac en effet
host=localhost étant devenu host=127.0.0.1
ça fonctionne.:ccool: