• 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/

    I configured everything and when I get to the installation step, I navigate to 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

    (@t-p)

    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://ww.wp.xz.cn/search/Error+establishing+a+database+connection?forums=1

    Thread Starter kcelsi

    (@kcelsi)

    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

    (@t-p)

    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.