PHPStorm Database support for Homestead

Share on facebook
Share on twitter
Share on linkedin

We use Homestead as a Server for all our projects even for WordPress projects. PHPStorm  has a really nice Database connection feature. But to set it up with Homestead it took me a while so I want to share the trick.

Step 1

Just open the Database tab on the right side.

Step 2

Add with the plus sign Data Source -> MySql

Step 3

For the Settings I had to take the ip instead of localhost and use the forwarded Port (can be different on your system if you changed the default settings)

Step 4

Enjoy the nice Database support!


Subscribe to our newsletter

Be first to read new helpful post

Share this post with your friends

Share on linkedin
Share on xing
Share on twitter
Share on facebook
composer Blog Title Image

10 Tips for PHP Composer

  1. Add the composer.lock and the composer.json to Git.

Composer install will install all the packages you have defined in your composer.lock file.

Leave a Reply

Notify of