[PostGreSQL] server: FATAL: IDENT authentication failed for user
Salut,
J'ai un petit souci de connexion au serveur postgresql.
j'utilise une fonction :
Code:
1 2 3 4 5 6 7 8 9 10
| $host = '127.0.0.1';
$user = 'biogeo';
$password = '';
$bdd = '';
function connect(){
global $host,$user,$passwordb,$bdd;
$connect_db = pg_connect("host=$host port=5432 user=$user password=$password dbname=$bdd");
return $connect_db;
} |
mais j'ai le message suivant :
Citation:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: IDENT authentication failed for user "biogeo" in /var/www/maps/connection/connect.php on line 9
Pourtant si j'essaie de me connecter depuis phppgadmin ça fonctionne !
Une idée?
merci
Julien