For my main WordPress Services Website I use VPS hosting. Specifically the virtual server uses Cpanel, WHM and Parallels Power Panel. This morning, upon logging in to WHM there were various updates to apply which I did. Upon performing a Graceful Server Reboot in WHM I received the following error message upon viewing my WordPress Website in Firefox, Chrome or any Internet Browser: Error establishing database connection . Fortunately this is really simple to resolve.
How to restart MySQL Server in WHM
The problem that was being encountered with the database error is that the SQL Server hadn’t restarted. All that needs to be done to fix the problem is start MySQL. Follow these steps.
- Login to WHM.
- Expand the Restart Services tab to the left of the screen.
- Click SQL Server (MySQL).
- Click Yes to the message Are you sure you wish to restart this service?
Your database will be once more up and running and your Website will display just fine.