WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Deleted wp-config/ Reset it but now wants new install (7 posts)

  1. rvaya
    Member
    Posted 10 months ago #

    Hello,
    I accidentally deleted my wp-config.php file today. Something I've never done before. So I looked it up and found out if I put it back with the right info it would be okay. Well now when I go to log in like normal it takes me directly to the install page. It's like it wants me to recreate the whole site. But it's all still there. Is this normal? Should I put in the same information even though it's there? I'm just curious if it will delete my old content or what?

    I couldn't find this problem so if it's posted somewhere else I'm sorry.

    Thanks for any help you can give.

  2. esmi
    Forum Moderator
    Posted 10 months ago #

    Is this normal?

    No. Double check that you have used the correct database name and host name.

  3. rvaya
    Member
    Posted 10 months ago #

    okay I'm stuck. How do I find my database password. I don't seem to have it in my normal secure password area on my computer. And I'm looking in the MYSQL database and I'm not seeing it. Is it just the password of my "admin" user?

    Cause I tried that and now I'm getting Error establishing a database connection.

  4. esmi
    Forum Moderator
    Posted 10 months ago #

    How do I find my database password

    You should be able to find it via your hosting management panel. Otherwise, contact your hosts for assistance.

  5. jeffnar
    Member
    Posted 10 months ago #

    If you have a copy/backup of your old wp-config.php file, you can find it around line #27:

    /** MySQL database username */
    define('DB_USER', 'your_user_name_wrdp1');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxxxxxxxxxxx');

    It's not something that most people use or have written down somewhere. Then again, if you do have a backup copy of your wp-config, you can just ask your hosting Co. to help you upload it to your db again (to document-root level, where your index.php resides).

  6. rvaya
    Member
    Posted 10 months ago #

    okay so I know now I have the correct password, database user, and database name but it's going to install.php for some reason.

    This is so weird.

  7. rvaya
    Member
    Posted 10 months ago #

    Figured it out. What was happening is explained here: http://wordpress.org/support/topic/updated-wp-config-and-site-wants-new-wordpress-install?replies=3

    Thanks for your help guys so glad it's working now.

Reply

You must log in to post.

About this Topic