Maandelijks archief: februari 2016

SQLSTATE[HY000] [2003] Can't connect to MySQL server

A while ago I was in a project which had separate CentOS web server and database servers. I had whitelisted the IP addresses we were using so the machines could reach each other, but all other connections were dropped. One would expect that to be enough, but my requests returned me ‘SQLSTATE[HY000] [2003] Can’t connect to MySQL server’. Apparently SE Linux didn’t want me to connect yet.

Verder lezen