I have some cron jobs that suddenly stopped a few days ago. I traced it back to the host setting when connecting to the database. When I use localhost, the script fails giving me this error: 'Error establishing mySQL database connection. Correct user/password? Correct hostname? Database server running?'. When I use the server's IP address or 127.0.0.1, the script works as it should.
Also, this only seems to be happening to one account and if I were to access the script through a browser and the host is set to 'localhost' the script works fine.
What could cause localhost to not work only for crons and for only one account?
Running:
CENTOS 6.3 x86_64 standard
WHM 11.38.0 (build 19)
Also, this only seems to be happening to one account and if I were to access the script through a browser and the host is set to 'localhost' the script works fine.
What could cause localhost to not work only for crons and for only one account?
Running:
CENTOS 6.3 x86_64 standard
WHM 11.38.0 (build 19)