I followed docs installing three WordPress sites on my EE server. All three are WordPress with Redis cache. Everything was going great until this morning all sites had “Error establishing database connection” message. I rebooted the server and everything started working again. I was wondering is there a way to find out why it happened and if so is there any way to maybe restart or reboot server via cron or any other means once a day at midnight??
P.S. Today even rebooting of the server does not help. It says Error establishing database connection
Thank you for any info.