title: pgadmin3 server connection and authentication error
body: <p>I have recently installed postgresql 9.1 and pgadmin3. But I can't connect to server which I created with this config:</p>
  
  <pre><code>name: mydb
  host: 127.0.0.1
  port: 5432
  service: 
  Maintenance DB: postgres
  username: postgres
  password: *
  </code></pre>
  
  <p>According to similar problems I've set my <code>/etc/postgresql/9.1/main/pg_hba.conf</code> file under ubuntu 12.04 LTS like this:</p>
  
  <pre><code>local   all             postgres                                md5
  
  # TYPE  DATABASE        USER            ADDRESS                 METHOD
  
  # "local" is for Unix domain socket connections only
  local   all             all                                     md5
  # IPv4 local connections:
  host    all             all             127.0.0.1/32            md5
  # IPv6 local connections:
  host    all             all             ::1/128                 md5
  
  host    all             all             localhost               trust
  </code></pre>
  
  <p>But when I want to connect to the server I get this error:</p>
  
  <blockquote>
    <p>Error connecting to the server: FATAL:  password authentication failed for user "postgres"<br>
    FATAL:  password authentication failed for user "postgres"  </p>
  </blockquote>