SQLSTATE[HY000] [2002] Connection refused


#1

Hi there

Since 3 days I get the following error:

PDOException in Connector.php line 55:
SQLSTATE[HY000] [2002] Connection refused

I use Illuminiate to connect to mysql. Does someone has an idea what to do?

Thanks.
Cheers


#2

Is MySQL running? You can check by running ps aux | grep mysql | grep -v grep.

If it’s not you need to run mysql-ctl start. Or you could try mysql-ctl restart if it is running just in case it stalled somehow.


#3

Thanks, it is working.