title: How do I create postgre SQL database locally with DataGrip
body: <p>I'm getting started with Data Grip and I'm stuck before I started doing anything. First thing I've done was creating postgre Data Source with default parameters.</p>
  
  <p><a href="https://i.stack.imgur.com/k9VfZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k9VfZ.png" alt="Properties"></a></p>
  
  <p>Now I opened a console, and tried to run a script:</p>
  
  <pre><code>drop table table1;
  </code></pre>
  
  <p>The console then prints:</p>
  
  <pre><code>Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  </code></pre>
  
  <p><a href="https://intellij-support.jetbrains.com/hc/user_images/TLQxpW4QnrUh_s95xEZh3g.png" rel="nofollow noreferrer"><img src="https://intellij-support.jetbrains.com/hc/user_images/TLQxpW4QnrUh_s95xEZh3g.png" alt="Properties"></a></p>
  
  <p>What can I do about that, so that I could create my project in e.g.: D:\Database\ instead of connecting to other hosts?</p>