Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

Can not establish database connection (7 posts)

  1. ex-brief
    Member
    Posted 3 years ago #

    I had my site up and working properly for about a month. I had to change my password on the database and now MU can not connect to the database. how can I tell mu the new passowrd so this works again?

  2. ex-brief
    Member
    Posted 3 years ago #

    nevermind, i am really tired i guess, brain freeze, Doh! I figured it out. thanks

  3. juliangreigh
    Member
    Posted 2 years ago #

    Solution:

    The issue is with the wp_config file in the wp_content folder.

    fast fix:

    1. delete wp_config file
    2. WP will prompt you to set up your blog site again
    3. Enter the username and password of your original database
    4. WP will create a new wp_config file and reconnect to your database

    you're good to go.

    (of course it almost goes without saying - "try at your own risk")

    Hope this helps

    Julian

  4. andrea_r
    Moderator
    Posted 2 years ago #

    Or just edit the config file with the new details.

  5. juliangreigh
    Member
    Posted 2 years ago #

    ...you could "just" edit the wp_config. Why don't you explain how to do it in some detail?

  6. andrea_r
    Moderator
    Posted 2 years ago #

    you don't know how to edit a file on the server?

    The original post said he had a *working* WPMU install.

    Then he decided to change his database password.

    So then he had to change the db password details in wp-config.php

    Now, if you're on a common type of server that has something like Cpanel or Plesk, both of them have an area called a File Manager where you can look at a list of files on the server. If you click on the name of the file, it lets you edit it.

    And in the case of the OP, all he had to do was change the old db password to the new one.

    And, I'll reiterate again, the wp-config.php file does *not* belong in the wp-content folder. This thread didn't have anything to do with installation.

  7. Njualem
    Member
    Posted 2 years ago #

    @andrea_r

    Please Andrea I have a problem with my data base as well and I have a forum post here that explains the problem. Please have a look at it.

    I will appreciate any directives from you, Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic