Support » Installing WordPress » Database error

  • [Moderator note: Topic title de-capped. Please do not shout at us.]

    I have an error message appears:
    Username and / or password defined in wp-config.php file is incorrect or that you can not connect to the server at localhost. It’s also possible that the server is not currently available.

    Make sure that the user name and password are correct, and they were entered without error in the configuration file.
    Make sure the database server address is correct.
    Make sure that the server is still active and available.

    If you are not a technical person, you may want to contact Support to your hosting provider. Alternatively, you can contact a group discussion of WordPress.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hardeep Asrani


    Support Team Volunteer

    Login to your hosting provider and change your mysql database’s password & re-enter all information in wp-config.php file.

    This tutorial may help you:

    [ Moderator note: please use the codex link when possible ]

    If your site is in localhost and if you are using wamp,

    Go to this file in: WampFolder\apps\phpmyadmin[phpmyadmin version]\

    Usually wamp is in your main hard drive folder C:\wamp\

    You will see something like:

    $cfg[‘Servers’][$i][‘user’] = ‘YOUR USER NAME IS HERE’;
    $cfg[‘Servers’][$i][‘password’] = ‘AND YOU PASSWORD IS HERE’;

    Try using the password and username that you have on that file.
    xampp is also similar to this.

    If your site is in a server,
    follow these steps.

    [ Link moderated, please use the codex when possible ]
    Hope it helps.

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    @chaturaka and anyone else? Please keep the links on when possible.

    You do not have to send people to an external site, your own or others.

    @jan Dembowski : what do you mean by that?I tried my level best to explain this and also search from the internet and I got this link.So instead of typing the solution I gave the link.Thought this is only a support forum.Not a commercial one which needs to attract users.Am I wrong?

    what do you mean by that?

    You have repeatedly pointed people to sites other than when the definitive documentation that should assist them is on .

    Please use resources whenever possible.

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