WordPress.org

Forums

Database error on installation (4 posts)

  1. AbydosGater
    Member
    Posted 9 years ago #

    Hi, i am new to wordpress,
    And when i changes the config.php file and uploaded everything i keep getting the following message,

    ##########################################################
    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 DB_HOST. 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.
    ##########################################################
    But i have tryed over and over editing the file but it wll not work,

    the db name: starg160_blog
    db username: starg160_blog
    db password: ..............
    db host: localhost,

    but it will not work!

    What do i do???

    Thanks for your time
    Andrew Butler

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Who is your webhost ?
    Do they use cpanel / ensim / plesk or vdeck ? If so, there are guides here on the left.
    http://www.tamba2.org.uk/wordpress/
    If not, do post again.

  3. rfrenzob
    Member
    Posted 9 years ago #

    I am attempting a new install and having the same problem. I can get the install script to execute only using a MySQL account with no password. I've logged in over the command line to verify that the password is correct.

  4. rfrenzob
    Member
    Posted 9 years ago #

    After a through search of the Codex I found this:

    I keep getting an Error connecting to database message but I'm sure my configuration is correct.

    Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
    -----
    SET PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');
    -----

    If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.

    This seems to have worked for my install.

Topic Closed

This topic has been closed to new replies.

About this Topic