For those of you who are familiar with Phpstorm I am using version 2.0.1 as writing this question.
I am on a Mac using MAMP. I tried to connect my database with Phpstorm but it is a bit confusing.
I went to tools -> data sources
when I press + to add
and choose db datasource
it wants me to enter a "jdbc://
" URL to the database.
The whole time until now I've been using /Applications/MAMP/tmp/mysql/mysql.sock
.
How do I get the db to connect with this socket thing? The software is amazing but confusing at times.
Well you could just use the JDBC connector. I have used with Eclipse in the past. Not familiar with PHP storm. Im not sure if it comes with MAMP so you may have to download and install it.