WordPress.org

Forums

Error establishing a database connection (10 posts)

  1. emilyboyd
    Member
    Posted 3 years ago #

    I have all the database information correct I have checked multiple times with the info..but I am still seeing the same error. I have been inside the config.php file and working with the code trying things I've come across online but still the same message.

  2. loughcorrib
    Member
    Posted 3 years ago #

    What is the error 403 ? Or error= with password)yes if getting any of these it's user/pass combination can you post error

  3. cloudmaster
    Member
    Posted 3 years ago #

    He might be seeing what I'm seeing on a fresh 3.4.1 install -

    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?

    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.

    I've double checked my database & database user settings & everything's correct

  4. RichardWPG
    Member
    Posted 3 years ago #

    double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

  5. cloudmaster
    Member
    Posted 3 years ago #

    We both did, many times

  6. cloudmaster
    Member
    Posted 3 years ago #

    To add to this, I've just removed the database & database user in MySQL & recreated them. I haven't made any mistakes & still get the same error in WordPress

  7. fonglh
    Member
    Posted 3 years ago #

    Usernames and passwords are case sensitive. Check the database server with your hosts too. Not everyone uses 'localhost'.

  8. STEVEOK7
    Member
    Posted 3 years ago #

    hi

    i have a site http://www.backlinkbuddies.com

    Its been working fine but i accepted the wordpress offer to update database to latest version.

    Now i just get this arror message and I cant now access wordpress for this site:

    Fatal error: Call to undefined method dbrc_wpdb::delete() in /home/steveok7/public_html/backlinkbuddies.com/wp-includes/option.php on line 370

    Any ideas....

    steve
    [ Signature moderated. Also do not post email addresses here, that's not how support is offered. ]

  9. ehoanshelt
    Member
    Posted 3 years ago #

    Steveok7

    please post your issue on a different topic. Don't use someone else's topic to post your issue.

  10. cloudmaster
    Member
    Posted 3 years ago #

    Figured it out, I found some code on this site which, when placed in a .php file & run on the web server, checked MySQL connectivity for any particular user. This is the error I got -

    Could not connect: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

    After a bit of Googling, I commented out the old-passwords line from my.cnf & restarted MySQL server. I then re-applied the password for the database user using the syntax from this site, once that was all done I was able to install WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.