title: Cannot connect to local postgresql DB using DBeaver
body: <p>I'm trying to connect to a postgresql database which is in localhost:5432 but I keep getting the error: 
  FATAL: Ident authentication failed for user "".</p>
  
  <p>I installed Postgres11 on virtual machine running Centos7. Created a database through command line, with the name business_db.</p>
  
  <p>I've checked and postgresql is running in localhost:5432.</p>
  
  <p>My pg_hba.conf file is like this:</p>
  
  <pre class="lang-none prettyprint-override"><code># TYPE  DATABASE        USER            ADDRESS                 METHOD
  local   all             all                                     peer
  host    all             all             127.0.0.1/32           ident
  host    all             all             ::1/128                 ident
  local   replication     all                                     peer
  host    replication     all             127.0.0.1/32            ident
  host    replication     all             ::1/128                 ident
  </code></pre>
  
  <p>The pg_ident.conf file doesn't hold any configurations:</p>
  
  <pre class="lang-none prettyprint-override"><code># Put your actual configuration here
  # ----------------------------------
  
  # MAPNAME       SYSTEM-USERNAME         PG-USERNAME
  </code></pre>
  
  <p>The database exists as shown by the command:</p>
  
  <p><a href="https://i.stack.imgur.com/U393k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U393k.png" alt="Database list"></a></p>
  
  <p>I'm logged into the system as "dev" user but., whatever I try while testing connection whit DBeaver, I allways get the error:</p>
  
  <p><a href="https://i.stack.imgur.com/k3Pme.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k3Pme.png" alt="ERROR"></a></p>
  
  <p>I also tried to set User as postgres and use my system password but get the same error. What am I missing?</p>