

Improved support for Doctrine Collections.So, please advise – maybe ‘localhost’ is sufficient, like wp-config.This major release introduces full support for PHP 8.1, better handling of generics in PHP, remote development, improvements to deployment, an HTTP client, refactorings, and much more. – which says to put the socket path in your wp-config.php but that’s not actually needed in Local Lightning:.So please enable networking in your MySQL server and use ‘localhost’ with port for connection.

MySQL JDBC driver only supports TCP/IP and - on Windows - named pipes to connect to the database. I was able to get the socket running for local Codeception tests (.env files), but PhpStorm’s Database tool window cannot use a socket because Storm is written in Java and Java can’t use sockets, per their Storm’s support, which wrote this back to me: Local Flywheel used host IP + port for the database server.

Set ‘socketFactory’ to ‘.AFUNIXDatabaseSocketFactory’Īnd add ‘junixsocket.file’ with the path to our unix socket. Under ‘Driver Files’, click the + button and select:Īdd a new MySQL datasource, and under ‘Advanced’: In DataGrip’s Data Sources and Drivers Window, select the MySQL driver. The latest at time of writing (2.3.1) did work.Įxtract junixsocket somewhere (doesn’t matter, just needs to be accessible to DataGrip.) The Ubuntu package is currently 2.04, and did not work for me. It mentions DataGrip, but that’s part of the IntelliJ family, so maybe this will work for PHPStorm as well?ĭownload an up-to-date version of junixsocket Maybe you can use that code? I found that project by reading through the steps from this comment in PHPStorm’s Support site. This is because sockets are more performant, but Windows doesn’t support unix sockets.įor those of you using Mac – it looks like there is this project to bring Unix sockets to Java: Macs use sockets, while Windows uses ports. The way to connect to the DB depends on the OS that you are using. Hey everyone, sorry for the confusion with this.
