Can’t install mysql-server on WSL2
I’m currently trying to connect a php application on WSL2 with a database initialized on my windows using xampp and TablePlus. I get an error that looks like this:
127.0.0.1:54898 [500]: GET / - Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in ~/path/index.php:9 Stack trace: #0 ~/path/index.php(9): PDO->__construct() #1 {main} thrown in ~/path/index.php on line 9