When I start a new site and open it in the browser I get an error
Warning: mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.. When I switch the PHP version to 7.4.1 then the site works. Also it doesn’t work with PHP 5.6.39. Tried it with SSL and without.
I also get the same error in the terminal when i open the site shell and try to use
wp-cli for all versions of PHP except 5.6.39.
I’m on WIndows 10.
Hope you can help.