How to solve PHP Warning: mysqli_connect(): (HY000/2002): Connection refused problem?
The default port on MAMP for mysql is 8889, but the port that php expects to use for mysql is 3306. So you need to change it. Open MAMP, go to Preferences and Ports...
Recent Comments