PhpStorm does not support connecting to MySQL via socket.
To connect via TCP/IP instead, you will need to allow the DB_USER
to connect to MySQL over TCP/IP, for each site that you want to connect to.
You will need the DB_USER
, DB_PASSWORD
, and DB_NAME
values from you WP-Config, for each site you want to connect to.
Right-click on a site you want to connect to in Local’s sidebar and choose “Open Site Shell.”
In the resulting terminal, run the following commands
Be sure to replace DB_USER
and DB_PASSWORD
in these commands with their values from WP-Config!: