• I am a newbie to WP and I am trying to install WP on a remote web hosting server. I have created a database on my local WAMP server and created a new user amruta with some privileges using phpMyAdmin.
    I have entered the same privileges in the config file but when I run the installation I get the following error:

    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?

    What might be the problem behind this and how do I resolve this ?

    Sorry to re-post it, but my earlier post is no longer seen in the list of posts, hence posting it again.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • What might be the problem behind this and how do I resolve this ?

    Um… This:

    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.

    This means that the database settings in your wp-config.php file are wrong. You need to double-check the settings because at least oen of them is wrong.

    Thread Starter amruta_akut

    (@amruta_akut)

    The database server is online. If in case the username and password combination is wrong then is there any way I can cross-validate it?

    Yes. Run WordPress and if you get a connection error, your username, password and/or database name are wrong. If yo uknow a bit of programming you can try to throw together a quick script to create your own connection and run that outside of WordPress. I believe that it will tell you the same thing though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Database Connection Fails’ is closed to new replies.