Web & Classic Hosting Help

Why is WordPress unable to connect to my database during install?

If you are getting an "Error establishing a database connection" message when trying to connect to WordPress, you need to modify your wp-config.php file to work with our Database servers.

Update your wp-config.php file

This article assumes that you have already created a Database for WordPress in the Hosting Control Panel, downloaded the WordPress installation and uploaded it to your hosting account. If any of these is not the case, see Install WordPress on a Web or Classic Hosting Account.

Find the Host Name for Your MySQL Database

Modify your wp-config.php file

Open wp-config.php with a text editor such as Notepad. The wp-config.php file is located in your WordPress installation folder in your hosting account. If there is no file called wp-config.php, open wp-config-sample.php and save it as wp-config.php. You will be working in this file from now on.

WordPress includes security keys which add encryption of information stored in user's cookies. These must be set manually in the wp-config.php file. Locate the section of the file that looks like this:

Go to WordPress' online key generator and insert the keys in place of the placeholder text in the wp-config.php file. When you are finished, save and close the wp-config.php file.

Re-start the WordPress installation

Start the WordPress installation process again by visiting http://www.coolexample.com/wp-admin/install.php (where coolexample.com/ is your domain and the path where your WordPress installation is located). The installation should now work normally.

Was This Article Helpful?

Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.

Glad we helped! Anything more we can do for you?

Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.