So cPanel recently pushed an update, from version 11.46 to 11.48, which is wonderful.
HOWEVER! During this update, MySQL is taken offline to upgrade the RPM, and is NOT automatically restarted. I’m sorry, but if I was writing a script to upgrade something that is very likely critical to the operation of the server, I’d do the following:
1 – Check to see if the service is running.
2 – If service is running stop it, if not, continue to 3.
3 – Upgrade the necessary RPM.
4 – If service was running at the start of this, restart it, if not, leave it down.
This seems like it should be common sense, but alas, cPanel = Trolls.