"Cannot connect to the configuration database orUnable to connect to database. Check database connection information and make sure the database server is running." This is “the” error that everyone has once in his life seen on SharePoint Product Configuration Wizard..
There are many reasons why:
Firewall can block access and communication with your Microsoft SQL Server server, so you have 2 possibilities..
Disable Firewall, easiest way..
Or create 2 rules
Check if your installation is correct like it has to be: http://www.gknzcfc.net/subsite/how-to-install-sql-server-2008-r2
Next, you must verify that this account has the required permission the SQL Server database.
Enable TCP/IP and Named Pipes (you’ll be warned that these changes will not apply until you the service is shut down)
Please be sure that when you made a “copy” of your Virtual Machine, to made a sysprep and not to get the same SID !!! Use PSTOOLS for it ..
Follow http://technet.microsoft.com/en-us/library/cc263314.aspx and change the timeout to 45. stsadm -o setproperty -pn database-connection-timeout -pv 45
Click Start, click Run, type cmd in the Open box, and then click OK.
Change to the following directory:
system drive\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Bin
Gokan Ozcifci edited Revision 21. Comment: changed site - updated content
Peter Geelen - MSFT edited Revision 15. Comment: cleaned HTML and typos
Naomi N edited Revision 12. Comment: Minor edit, title case
Gokan Ozcifci edited Revision 11. Comment: Tags
Gokan Ozcifci edited Revision 8. Comment: Added Content
Richard Mueller edited Revision 7. Comment: Replace RGB values with color names in HTML to restore colors
Richard Mueller edited Revision 6. Comment: Removed (en-US) from title, fixed typo
Gokan Ozcifci edited Revision 5. Comment: New site - gknzcfc.net
Ed Price - MSFT edited Revision 2. Comment: Title guidelines. Added tags.
Gokhan Ozcifci edited Revision 1. Comment: Contact
Good article I ran into an error like this trying to run PSConfig for MOSS 2007 w/ SP1 on Server 2003 R2 x86 with the SQL Server 2008 R2 box running on a remote machine in the same domain. The exact error was:
"SharePoint Products and Technologies Configuration Failed to connect to the database server or the database name does not exist. Ensure the database server exists, is a Sql server, and that you have the appropriate permissions to access the database server. To diagnose the problem, review the extended error information located at <path>. Please consult the SharePoint Products and Technologies Configuration Wizard help for additional information regarding database server security configuration and network access."
I was getting the error on the Specify Configuration Database Settings page of the wizard.
Cause:
Database server filed had a value of contoso\sp2010 where contoso is the domain and sp2010 is the database server running SQL 2008 R2.
Solution:
Remove 'contoso\' from the Database server field so it's just sp2010 and click Next > button.
Craig Lussier edited Original. Comment: added en-US to tags and title
Sometimes the stadm part doesnt work id that is so then you need to follow the instructions i found on this blog heresjaken.com/sharepoint-cannot-connect-to-configuration-database-error-after-installing-kb-update-on-sbs-server-2008
Thanks Peter for your help !