PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
I found the reason why the connection was not working, it was because the connection was trying to connect to port 8888, when it needed to connect to port 8889. This fixed the problem, although changing the server name to localhost still gives the error. Connection failed: SQLSTATE[HY000] [2002] No such file or directory But … Read more