Précédent   Forum des professionnels en informatique > Bases de données > PostgreSQL
PostgreSQL Forum PostgreSQL. Avant de poster -> F.A.Q PostGreSQL Tutoriels PostGreSQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 12/06/2006, 14h54   #1
Invité régulier
 
Inscription : mai 2006
Messages : 20
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 20
Points : 9
Points : 9
Par défaut phppgadmin a du mal

Bonjour, j'ai un soucis avec phppgadmin, il affiche "login failed", à chaque fois que je tente de me connecter. Pourtant, je peux me connecter avec pgadmin III et le client psql.


Voici mon extrait config.inc.php:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
<?php
 
 
        // An example server.  CREATE AS many of these AS you wish,
        // indexed FROM zero upwards.
 
        // Display name FOR the server ON the login screen
        $conf['servers'][0]['desc'] = 'PostgreSQL';
 
        // Hostname OR IP address FOR server.  USE '' FOR UNIX domain socket.
        $conf['servers'][0]['host'] = '';
 
        // DATABASE port ON server (5432 IS the PostgreSQL DEFAULT)
        $conf['servers'][0]['port'] = 5432;
 
        // CHANGE the DEFAULT DATABASE only IF you cannot connect TO template1
        $conf['servers'][0]['defaultdb'] = '';
 
        // Specify the path TO the DATABASE dump utilities FOR this server.
        // You can SET these TO '' IF no dumper IS available.
        $conf['servers'][0]['pg_dump_path'] = '/usr/bin/pg_dump';
        $conf['servers'][0]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
 
 
        // DEFAULT LANGUAGE FOR the login screen IF there's no translation
        // matching user's browser request. Eg: 'english', 'polish', etc.
        $conf['default_lang'] = 'english';
 
        // IF extra login security IS true, then logins via phpPgAdmin WITH no
        // password OR certain usernames (pgsql, postgres, root, administrator)
        // will be denied. Only SET this false once you have READ the FAQ AND
        // understand how TO CHANGE PostgreSQL's pg_hba.conf to enable
        // passworded local connections.
        $conf['extra_login_security'] = false;
 
        // Only show owned databases?
        // Note: This will simply hide other databases in the list - this does
        // not in any way prevent your users from seeing other database by
        // other means. (eg. Run 'SELECT * FROM pg_database' in the SQL area.)
        $conf['owned_only'] = true;
 
        // Display comments on objects?  Comments are a good way of documenting
        // a database, but they do take up space in the interface.
        $conf['show_comments'] = true;
 
        // Display "advanced" objects?  Setting this to true will show types,
        // operators conversions, languages and casts in phpPgAdmin.  These
        // objects are rarely administered and can clutter the interface.
        $conf['show_advanced'] = false;
 
        // Display "system" objects?
        $conf['show_system'] = false;
 
        // Display reports feature?  For this feature to work, you must
        // install the reports database as explained in the INSTALL file.
        $conf['show_reports'] = true;
 
        // Only show owned reports?
        // Note: This does not prevent people from accessing other reports by
        // other means.
        $conf['owned_reports_only'] = true;
 
?>
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
# Database administrative login by UNIX sockets
LOCAL   ALL         postgres                          ident sameuser
LOCAL   ALL         postgres                          md5
 
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
 
# "local" is for Unix domain socket connections only
LOCAL   ALL         ALL                               ident sameuser
#local   all        all                                 md5
# IPv4 local connections:
host    ALL         ALL         127.0.0.1/32          md5
host    ALL         ALL         192.168.1.0/24        trust
#host   all         all         192.168.1.0/24          password
# IPv6 local connections:
host    ALL         ALL         ::1/128               md5
et de postgresql.conf
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
#---------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#---------------------------------------------------------------------------
 
# - Connection Settings -
 
listen_addresses = '*'  # what IP interface(s) to listen on;
                                # defaults to localhost, '*' = any
port = 5432
max_connections = 100
        # note: increasing max_connections costs about 500 bytes of shared
        # memory per connection slot, in addition to costs from shared_buffers
        # and max_locks_per_transaction.
#superuser_reserved_connections = 2
unix_socket_directory = '/tmp'
#unix_socket_group = ''
#unix_socket_permissions = 0777 # octal
#rendezvous_name = ''           # defaults to the computer name
 
# - Security & Authentication -
 
#authentication_timeout = 60    # 1-600, in seconds
ssl = true
#password_encryption = true
#krb_server_keyfile = ''
#db_user_namespace = false
Drmalcolm est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/06/2006, 10h44   #2
Membre confirmé
 
Inscription : juillet 2003
Messages : 400
Détails du profil
Informations forums :
Inscription : juillet 2003
Messages : 400
Points : 202
Points : 202
bonjour
dans le fichier postgresql.conf tu dois verifier que postgres accepte les connections tcp/ip

vérifie que cette instruction n'est pas commentée ou n'est pas à false
Code :
1
2
3
4
5
 
 
# - Connection Settings -
 
tcpip_socket = true
__________________
;-) cordialement
peppena est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/06/2006, 11h01   #3
Invité régulier
 
Inscription : mai 2006
Messages : 20
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 20
Points : 9
Points : 9
Citation:
Envoyé par peppena
bonjour
dans le fichier postgresql.conf tu dois verifier que postgres accepte les connections tcp/ip

vérifie que cette instruction n'est pas commentée ou n'est pas à false
Code :
1
2
3
4
5
 
 
# - Connection Settings -
 
tcpip_socket = true

Ca c'est uniquement pour la version 7!
La version 8 et supérieur c'est
Code :
1
2
 
listen_addresses = '*'  # what IP interface(s) to listen on;
Drmalcolm est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 12h41.


 
 
 
 
Partenaires

Hébergement Web