<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Martin, <br>
    <br>
    Here is my log : <br>
    <br>
.-(/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10)------------------------------------------------------------(benoit@pyrite)-<br>
    `--> db.connect dri=pg
    datab=administration                                                  
    <br>
    D1/3: G_set_program_name(): db.connect<br>
    D2/3: G_file_name(): path = /disques/grassdata/BCG_V7/benoit<br>
    D2/3: dbDbmscap(): opendir
[/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10/dist.i686-pc-linux-gnu/driver/db/]<br>
    D3/3: db_get_login(): drv=[pg] db=[administration]<br>
    D3/3: read_file(): DB login file =
    </home/benoit/.grass7/dblogin><br>
.-(/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10)------------------------------------------------------------(benoit@pyrite)-<br>
    `--> db.login dri=pg datab=administration host=192.168.1.200
    user=benoit port=5432          <br>
    D1/3: G_set_program_name(): db.login<br>
    D2/3: G_file_name(): path = /disques/grassdata/BCG_V7/benoit<br>
    D2/3: dbDbmscap(): opendir
[/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10/dist.i686-pc-linux-gnu/driver/db/]<br>
    D3/3: db_set_login(): drv=[pg] db=[administration] usr=[benoit]
    pwd=[(null)] host=[192.168.1.200] port=[5432]<br>
    D3/3: read_file(): DB login file =
    </home/benoit/.grass7/dblogin><br>
    D3/3: write_file(): DB login file =
    </home/benoit/.grass7/dblogin><br>
.-(/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10)------------------------------------------------------------(benoit@pyrite)-<br>
    `--> db.tables
    -p                                                                            
    <br>
    D1/3: G_set_program_name(): db.tables<br>
    D2/3: G_file_name(): path = /disques/grassdata/BCG_V7/benoit<br>
    D2/3: dbDbmscap(): opendir
[/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10/dist.i686-pc-linux-gnu/driver/db/]<br>
    D2/3: dbDbmscap(): opendir
[/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10/dist.i686-pc-linux-gnu/driver/db/]<br>
    D1/3: db_d_init_error(): PostgreSQL<br>
    D3/3: db_get_login(): drv=[pg] db=[administration]<br>
    D3/3: read_file(): DB login file =
    </home/benoit/.grass7/dblogin><br>
    D3/3: ret = 3 : drv=[pg] db=[administration] usr=[benoit] pwd=[]
    host=[], port=[]<br>
    D3/3: db_driver_open_database(): driver=pg database definition =
    'administration'<br>
    D3/3: parse_conn: 'administration'<br>
    D3/3: db_driver_open_database(): host = (null), port = (null),
    options = (null), tty = (null), dbname = administration, user =
    (null), password = (null), host = (null), port = (null) schema =
    (null)<br>
    D3/3: db_get_login(): drv=[pg] db=[administration]<br>
    D3/3: read_file(): DB login file =
    </home/benoit/.grass7/dblogin><br>
    D3/3: ret = 3 : drv=[pg] db=[administration] usr=[benoit] pwd=[]
    host=[], port=[]<br>
    DBMI-PostgreSQL erreur de pilote :<br>
    Connection failed.<br>
    n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce
    type<br>
        Le serveur est-il actif localement et accepte-t-il les
    connexions sur la<br>
         socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?<br>
    <br>
    <br>
    DBMI-PostgreSQL erreur de pilote :<br>
    Connection failed.<br>
    n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce
    type<br>
        Le serveur est-il actif localement et accepte-t-il les
    connexions sur la<br>
         socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?<br>
    <br>
    <br>
    ERREUR :Unable to open database <administration><br>
.-(/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10)------------------------------------------------------------(benoit@pyrite)-<br>
    `--> db.tables -p 2>&1 | grep
    open_database                                       <br>
    D3/3: db_driver_open_database(): driver=pg database definition =
    'administration'<br>
    D3/3: db_driver_open_database(): host = (null), port = (null),
    options = (null), tty = (null), dbname = administration, user =
    (null), password = (null), host = (null), port = (null) schema =
    (null)<br>
.-(/disques/divers/linux-1/archive/GIS/grass/grass-7.0/pyrite/grass-7.0.svn_src_snapshot_2016_09_10)------------------------------------------------------------(benoit@pyrite)-<br>
    `--> <br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 14/09/16 13:40, Martin Landa a
      écrit :<br>
    </div>
    <blockquote class=" cite"
id="mid_CA_Ei1Odt00EwziuUNf7ejWbYyeGHt7YA_eWE64tbXwvsToqoow_mail_gmail_com"
cite="mid:CA+Ei1Odt00EwziuUNf7ejWbYyeGHt7YA=eWE64tbXwvsToqoow@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,

2016-09-14 13:06 GMT+02:00 Martin Landa <a class="moz-txt-link-rfc2396E" href="mailto:landa.martin@gmail.com"><landa.martin@gmail.com></a>:

I tested with 7.0.5.svn:

db.connect dri=pg datab=mydb
db.login dri=pg datab=mydb host=myhost user=myuser pass=mypw port=5432
db.tables -p

works. Could you try to enable debug message and post here relevant information:

g.gisenv set=debug=3
db.tables -p 2>&1 | grep open_database

(be aware that the log will contain all login information including
real password - good idea to change it before post here :-)

Ma

</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <table border="0" cellpadding="0" cellspacing="0" height="230"
        width="422">
        <tbody>
          <tr>
            <td style="padding-top:15px; padding-left:25px;
              font-family:Verdana, Arial, Helvetica, sans-serif;
              font-size:12px; color:#663515" valign="top" width="25"> <br>
            </td>
            <td style="padding-top:15px; padding-left:25px;
              font-family:Verdana, Arial, Helvetica, sans-serif;
              font-size:12px; color:#663515" valign="top" width="271">
              <p style="margin-bottom:5px; padding:0"> <strong
                  style="font-size:14px; font-family:Verdana, Arial,
                  Helvetica, sans-serif; color:#00b1e6"><font
                    color="#00b1e6">Benoit André</font></strong><br>
                <strong><font color="#663515">Directeur - Gérant</font></strong>
              </p>
              <p style="margin-bottom:5px; margin-top:0; padding:0"> <font
                  color="#663515"><a
                    href="mailto:benoit.andre@bcgeol.be"
                    style="color:#00b1e6">benoit.andre@bcgeol.be</a></font><br>
                <font color="#663515">Tel. <span style="color:#00b1e6">|</span>
                  +32 475 61 84 94</font><br>
                <font color="#663515">skype <span style="color:#00b1e6">|</span>
                  benoit_andre_bcg</font><br>
                <a href="https://be.linkedin.com/in/benoitandre"><img
                    src="cid:part2.05020504.03070203@bcgeol.be"
                    alt="Voir le profil de Benoit André sur LinkedIn"
                    border="0" height="15" width="80"></a> </p>
              <p style="margin-bottom:5px; padding:0; font-size:11px"> <strong><font
                    color="#663515">BCG SPRL</font></strong><br>
                <font color="#663515">Tél. <span style="color:#00b1e6">|</span>
                  +32(0)81 58 26 11</font><br>
                <font color="#663515">Fax <span style="color:#00b1e6">|</span>
                  +32(0)81 58 26 12</font><br>
                <font color="#663515">Chemin de la Foliette, 4 Bte 2<br>
                  B-5000 - Namur</font><br>
                <font color="#663515"><a href="http://www.bcgeol.be"
                    style="color:#00b1e6">www.bcgeol.be</a>  -  <a
href="https://maps.google.be/maps/ms?msid=210366068780572446312.0004dc0b834462107c00f&msa=0&ll=50.460427,4.856445&spn=0.001279,0.002411&iwloc=0004dc0b8345e35a35a20"
                    style="color:#00b1e6">plan d'accès</a></font> </p>
            </td>
            <td valign="top" width="151"> <a
                href="http://www.bcgeol.be"><img
                  src="cid:part6.05070604.02040101@bcgeol.be" alt="BCG
                  LOGO" border="0" height="112" width="151"></a> </td>
          </tr>
          <tr>
            <td colspan="3" height="64" valign="top"> <img
                src="cid:part8.01080103.05030001@bcgeol.be" height="64"
                width="422"> </td>
          </tr>
        </tbody>
      </table>
      <p style="font-size:11px"> <font color="#663515">Suivez-nous sur
           <span style="padding: 5px;"><a
href="https://www.linkedin.com/company/bureau-conseil-en-g%E9ologie-sprl"><img
                src="cid:part9.03090001.01040505@bcgeol.be" alt="Lien
                Linkedin" border="0" height="15"></a> <a
href="https://www.facebook.com/Bureau-Conseil-en-G%E9ologie-153924548320189/?ref=hl"><img
                src="cid:part11.07020706.03080304@bcgeol.be" alt="Lien
                Facebook" border="0" height="18"></a> </span> </font><br>
      </p>
      <p style="color: #008000; font-size: 9px; "> Allons plus loin dans
        le respect de l'environnement : <a
          href="https://www.modere.eu/?referralCode=050281"
          style="color: #008000; ">N'utilisons que des produits sans
          empreinte écologique<img
            src="cid:part13.00050103.00080402@bcgeol.be" alt="Logo
            Modere" border="0" height="27" width="30"></a>
      </p>
    </div>
  </body>
</html>