Reputation: 66490
I have a legacy PHP project using MySQL. PhpStorm discovers that there are MySQL queries inside the project, and asks me to provide a data source for them.
This opens this window:
Yet I am totally confused on how to provide the credentials to my MySQL database. I expected a mask to enter my MySQL host, username, password and target database name. Yet I cannot find this in here.
How to configure a MySQL data source in PhpStorm?
Upvotes: 2
Views: 1682
Reputation: 525
To create a new source for your projet, click on the green "+" icon and select mysql in the list of drivers. It should display fields for database info including username and password.
Upvotes: 3
Reputation: 115
You have to click on the green +
, top left corner.
Then Click on MySQL, and you will be able to enter DB informations.
Upvotes: 3