I am having a fresh installation of SharePoint 2010 on my Windows 7 machine, it was everything working fine but 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,
- Go to run text box (Win + R shortcut key)
- Type services.msc in the text box and press enter
- 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)
- Now try to access the SharePoint Central administration, you will able to do .
Note: Above resolution is for one of the cause of the issue, there might be other causes also for this issue like,
- SQL credentials are not matching with application pool account.
- There is no connectivity between application server and SQL server
- SQL services are down
For more details please go through this link http://support.microsoft.com/kb/823287