SQLSTATE[HY000] [2002] Connection refused


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?



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.


Thanks, it is working.