• arafat_ah

    (@arafat_ah)


    Hello all,
    I am a new WordPress user. I have “write access” in my “wp-config.php” file. Recently I changed my cpanel password and at the same time there was marked the option “Allow MySQL password change”. So, I think MySQL database password was also changed. But If I view the “wp-config.php” now, there still shows the old passowrd. In the same way,(keeping “Allow MySQL password change” option marked) I changed the cpanel password two times. But the password inside the “wp-config.php” file is showing as past. Is it not updating to the wp-config.php file? Should I write my new password in plain text there? Please reply….

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator cubecolour

    (@numeeja)

    If you have changed your database password, yes you will also need to update wp-config.php to reflect the change.

    There is no functionality in WordPress which might automatically do this for you.

    Thread Starter arafat_ah

    (@arafat_ah)

    Would someone please let me know those as well….
    > What should be the file permission for wp-config.php? (I am using hosting from a reseller provider).

    > if the MySQL database username/ password inside wp-config.php is incorrect, then what would happen?

    > In cpanel password changing option, does the “Allow MySQL password change” feature changes the “MySQL DATABASE password”?

    Moderator cubecolour

    (@numeeja)

    1. see http://codex.wordpress.org/Changing_File_Permissions. It is normally 644, but in some cases 600 is recommended.

    2. If the db username and/or password is incorrect you would probably see the “Error Establishing a Database Connection” error when trying to view the site.

    3. This should change the password used to connect to MySQL with PHPmyAdmin, but you may have a different username/password to connect to the database. If you are unsure your hosting company should be able to help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-config.php username and password issues’ is closed to new replies.