Forums

[resolved] Getiing this error message after installation (4 posts)

  1. TonyF0512
    Member
    Posted 4 months ago #

    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?

    _________________________

    I edited wp-config-sample.php to include username 'root' & PW 'root', saved it as wp-config.php. It is currently in C:\xampp\htdocs\wordpress.
    Should it be somewhere else, like C:\xampp\htdocs\wordpress\wp-admin, or C:\xampp\htdocs ???
    Or should I not have changed the password yet, though you recommend it for better security?

    Can anyone help?

  2. shirazdrum
    Member
    Posted 4 months ago #

    Your config file is incorrect. a small space could cause all sort of problems so double check your database name, username and password and try again.

  3. govpatel
    Member
    Posted 4 months ago #

    If you did not set any password for root then just add root as username and leave password blank in wp-config.php

  4. TonyF0512
    Member
    Posted 4 months ago #

    Thanks guys. There was an error in the db name on phpMyAdmin page.

    By the way. A checklist like an airline pilot uses would be a fantastic and quick-to-use tool for new installers.

Reply

You must log in to post.

About this Topic