Title: Problem Installing WordPress using XAMPP
Last modified: August 20, 2016

---

# Problem Installing WordPress using XAMPP

 *  [kcelsi](https://wordpress.org/support/users/kcelsi/)
 * (@kcelsi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-using-xampp/)
 * Hello,
    I followed a tutorial to install WordPress using XAMPP. This is the tutorial:
   [http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/](http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/)
 * I configured everything and when I get to the installation step, I navigate to
   [http://localhost/wordpress/wp-admin/install.php](http://localhost/wordpress/wp-admin/install.php)
   and the screen says
    “Error establishing a database connection This either means
   that the username and password information in your wp-config.php file is incorrect
   or we can’t contact the database server at localhost. This could mean your host’s
   database server is down.
 * Are you sure you have the correct username and password?
    Are you sure that you
   have typed the correct hostname? Are you sure that the database server is running?
   If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the WordPress Support Forums.”
 * I followed the instructions and entered the correct database name, user name 
   and password in the wp-config.php file. What else could be causing this. Thank
   you.

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-using-xampp/#post-3542328)
 * Error connecting to your database is common, but it isn’t necessarily a problem
   with wordpress itself.
    – double check your wp-config.php file settings for the
   database name, database username and database password. This is where most errors
   occur. -Then check that you don’t need to change the database host from “localhost”
   to something else. You can get that info from your hosting provider. -Check you
   have actually created a database with the same database name as is in your wp-
   config.php file.
 * -There are also many threads on this topic on these forums: [http://wordpress.org/search/Error+establishing+a+database+connection?forums=1](http://wordpress.org/search/Error+establishing+a+database+connection?forums=1)
 *  Thread Starter [kcelsi](https://wordpress.org/support/users/kcelsi/)
 * (@kcelsi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-using-xampp/#post-3542334)
 * Thank you. Turns out the tutorial I was using was too old. It told me to enter
   local as the host for the database user instead of localhost. I fixed it and 
   it works fine now.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-using-xampp/#post-3542353)
 * Glad you got it sorted 🙂

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

The topic ‘Problem Installing WordPress using XAMPP’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-using-xampp/#post-3542353)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
