title: DBeaver localhost PostgreSQL connection refused
body: <p>I just installed DBeaver on my personal computer and am trying to create a PostgreSQL database.</p>
  
  <p>I entered the following in the Connect to database window:</p>
  
  <ul>
  <li>Host: localhost</li>
  <li>Port: 5432</li>
  <li>Database: postgres</li>
  <li>User: postgres</li>
  </ul>
  
  <p>Those values were all pre-filled defaults, so I left them and clicked the Test Connection... button.</p>
  
  <p>When I click the Test button an error window opens, saying, "Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Connection refused: connect"</p>
  
  <p>I tried setting my own db name and credentials, but get the same results.</p>
  
  <p>How do I set up a local PostgreSQL database in DBeaver?</p>