Reset password and now getting Error establishing a database connection (2 posts)

  1. Jebaroo
    Posted 4 years ago #

    Hi all,

    I just reset the password on MySQL for an old wordpress site I used to have and now the database won't connect so I get a crappy error when the site opens stating "Error establishing a database connection". Where do I need to go in my WordPress files to change the password. It has been a while and I am trying to re-learn all this stuff.

    Thanks in advance

  2. converting2wp
    Posted 4 years ago #

    The databases connection information is normally stored in wp-config.php.

    See http://codex.wordpress.org/Editing_wp-config.php

    The line you're looking for has the format

    define('DB_PASSWORD', 'yourpasswordhere');

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.