Support » Installing WordPress » Error establishing a database connection

  • 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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • What is the error 403 ? Or error= with password)yes if getting any of these it’s user/pass combination can you post error

    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

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

    We both did, many times

    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

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

    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. ]

    Steveok7

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

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.