I am having a fresh installation of SharePoint 2013 on my machine, suddenly today I started my PC and trying to start the Central Administration then I got this error.
“Cannot connect to the configuration database.”
So I have done below steps to resolve this issue
Step1: Go to run text box (Win + R shortcut key)
Step2: Type services.msc in the text box and press enter.
step3: You will see all the list of services running; Make sure the SQL Server (SHAREPOINT) service is started if not please start the service. (In my case it was not started)
Step4: Now try to access the SharePoint Central administration, you will able to do .