Title: Problems with installation&#8230;
Last modified: August 18, 2016

---

# Problems with installation…

 *  Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/problems-with-installation/)
 * I keep getting an error message, but I’m at a loss as to why I am getting it…
   The database name, MySQL username, and password are all accurate.
    This whole
   scenario has happened before. I deleted all my uploaded WordPress files, downloaded
   the WordPress zip file again, and uploaded everything, including the wp-config.
   php file with the proper values in it, but installation has yet to be a success…
   This is the error message that I get: Error establishing a database connection!
   This probably means that the connection information in your wp-config.php file
   is incorrect. Double check it and try again. * Are you sure you have the correct
   user/password? * Are you sure that you have typed the correct hostname? * Are
   you sure that the database server is running? This is my wp-config.php file: 
   <?php /** WordPress’s config file **/ /** [http://wordpress.org/](http://wordpress.org/)**///**
   MySQL settings ** // define(‘DB_NAME’, ‘wordpress’); // The name of the database
   define(‘DB_USER’, ‘laura’); // Your MySQL username define(‘DB_PASSWORD’, ‘password’);//…
   and password define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to 
   change this value // Change the prefix if you want to have multiple blogs in 
   a single database. $table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’//
   Change this to localize WordPress. A corresponding MO file for the // chosen 
   language must be installed to wp-includes/languages. // For example, install 
   de.mo to wp-includes/languages and set WPLANG to ‘de’ // to enable German language
   support. define (‘WPLANG’, ”); /* Stop editing */ $server = DB_HOST; $loginsql
   = DB_USER; $passsql = DB_PASSWORD; $base = DB_NAME; define(‘ABSPATH’, dirname(
   __FILE__).’/’); // Get everything else require_once(ABSPATH.’wp-settings.php’);?
   > Please help!

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/problems-with-installation/#post-95303)
 * CPanel:
    In your cpanel, you will have created a user, and created a database.
   Have you then clicked the ‘Add user to Db’ button as well ? It is not intuitive
   in cpanel at all. Although you have created the two, unless you click that button,
   you will not make the connection between the two, and until that happens, you
   will get an error.
 *  Thread Starter Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/problems-with-installation/#post-95840)
 * “Have you then clicked the ‘Add user to Db’ button as well ?”
    where on earth
   is that button? =(
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/problems-with-installation/#post-95841)
 * Do you have a cpanel ?
    The only other thing is that although you may have named
   the database ‘wordpress’, your host may have added a prefix to that. Does your
   host give an example ‘connection string’ ?

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

The topic ‘Problems with installation…’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/problems-with-installation/#post-95841)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
