title: Mysql Connection with Phpstorm IDE
body: <p>For those of you who are familiar with Phpstorm I am using version 2.0.1 as writing this question.</p>
  
  <p>I am on a Mac using MAMP. I tried to connect my database with Phpstorm but it is a bit confusing.</p>
  
  <p>I went to <em>tools</em> -> <em>data sources</em>
  when I press <em>+</em> to add 
  and choose db datasource
  it wants me to enter a "<code>jdbc://</code>" URL to the database. </p>
  
  <p>The whole time until now I've been using <code>/Applications/MAMP/tmp/mysql/mysql.sock</code>.</p>
  
  <p>How do I get the db to connect with this socket thing? The software is amazing but confusing at times.</p>