PHPStorm Database support for Homestead

 In Homestead, Laravel, PHPStorm, Tutorial

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!


Recent Posts

Leave a Comment


We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search

Cookie Preference

Please select an option. You can find more information about the consequences of your choice at Help.

Select an option to continue

Your selection was saved!



To continue, you must make a cookie selection. Below is an explanation of the different options and their meaning.

  • Accept all cookies:
    All cookies such as tracking and analytics cookies.
  • Accept first-party cookies only:
    Only cookies from this website.
  • Reject all cookies:
    No cookies except for those necessary for technical reasons are set.

You can change your cookie setting here anytime: About. Impressum


Laravel 5.5