Support » Localhost Installs » error establish a database connection

  • I am Totally new to making a Blog, My friend advised me to use this Software….
    but i am not able to use …. i m using this on my localhost….
    using WAMP
    when i open my browser and open the LOCALHOST then wordpress directory it gives this error…
    error establish a database connection

Viewing 3 replies - 1 through 3 (of 3 total)
  • – First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, if the hosting package is set to Windows and not Linux, etc .

    – 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.
    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.



    Hi there,

    It seems that you want to install the wordpress on your local PC?

    Ok please make sure WAMP is working/started properly.

    check http://localhost/ url.

    WAMP has very good interface so whatevery folder you have in your “www” directory, will be listed.

    if not then get download latest wordpress software from and unzip it and move to “www” folder. Check again can you see the wordppress folder?

    If yes then click it and it will on the installation page and it will ask you for configuration. Enter all information as require.

    You should make mysql database via http://localhost/phpmyadmin/

    while you are installing the wordpress and database information should be correct otherwise it will not installed.
    normally user ID : “root”
    passwork : blank

    best of luck my friend.


    i have wamp with good interference, i also worked with PHP files using this…. Also there is a “WordPress” name folder in the www folder of wamp..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error establish a database connection’ is closed to new replies.