Okay, here’s my crude but functional workaround…
Since I figured the problem is that the mysql service was being locked out of a file it needed, and restarting the service completely fixes the issue, I changed my Ubuntu server to stop and start the mysql service after boot up. Fairly simple procedure, just do the following:
[CODE]sudo nano /etc/rc.local
[/CODE]
In this file, above “exit 0”, type “service mysql restart” (no quotes).
Ctrl X to exit, Y to save, Enter to save to same file.
From that point forward, every time your server reboots, it will automatically bring down and up the SQL service, solving the “Unable to connect to database” error.
Hope this helps someone out there, let me know if anything is unclear!