Title: wordpress installation error
Last modified: May 23, 2018

---

# wordpress installation error

 *  [darioush3](https://wordpress.org/support/users/darioush3/)
 * (@darioush3)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/)
 * hello
 * i cant install the wordpress in my site and get the error can not establish database
   connection
    how can i solve this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-installation-error-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [sarath8181](https://wordpress.org/support/users/sarath8181/)
 * (@sarath8181)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10311744)
 * [https://www.youtube.com/watch?v=3LAZE6EXo6g](https://www.youtube.com/watch?v=3LAZE6EXo6g)–
   There are many posts online about this issue. This video should help you.
 *  [jaiharishankarpr](https://wordpress.org/support/users/jaiharishankarpr/)
 * (@jaiharishankarpr)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10326327)
 * This is general database error.You should open wp-config file and change the 
   name of database and username which is on your cpanel my databases.This will 
   fix the issue.
 *  [passionatedesigner](https://wordpress.org/support/users/passionatedesigner/)
 * (@passionatedesigner)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10336727)
 * This is a popular error. It can be easily fixed if you change the name of the
   database and username. I’d check out this article: [http://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/](http://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/)
   It discusses all of the common errors on WordPress and how to fix them.
 *  [eSparkBiz](https://wordpress.org/support/users/esparkinfo001/)
 * (@esparkinfo001)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10340494)
 * Error Establishing a Database Connection is one of those curses that could be
   caused by many reasons.
 * It may be solved by changing the database name and username in Wp-Config File.
 * If this not work then you can go with below article link,
 * I hope this article will help you:
    [http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/)
 *  [matveev123](https://wordpress.org/support/users/matveev123/)
 * (@matveev123)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10359327)
 * Спасибо!
 *  [AndrewN](https://wordpress.org/support/users/andrewn18/)
 * (@andrewn18)
 * [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10376141)
 * Error Establishing a Database Connection is one of those curses that could be
   caused by many reasons.
 * **Checking the WP-Config file**
 * WP-Config.php is probably the single most important file in your entire WordPress
   installation. This is where you specify the details for WordPress to connect 
   your database. If you changed your root password, or the database user password,
   then you will need to change this file as well. First thing you should always
   check is if everything in your wp-config.php file is the same.
 * define(‘DB_NAME’, ‘database-name’);
    define(‘DB_USER’, ‘database-username’); 
   define(‘DB_PASSWORD’, ‘database-password’); define(‘DB_HOST’, ‘localhost’);

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wordpress installation error’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 7 participants
 * Last reply from: [AndrewN](https://wordpress.org/support/users/andrewn18/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/wordpress-installation-error-8/#post-10376141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
