WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] yikes! deleted a wp-config.php file (8 posts)

  1. cperry
    Member
    Posted 4 years ago #

    YIKES - trying to get the 2.8 upgrade to work - keep getting a database connection error and accidentally deleted my wp-config.php file.

    So I have the sample file...I know my user name and password - where do I find my info...
    1. Database name - Is this my subdirectory?
    2. Database username - got it
    3. Database password - got it
    4. Database host ??? it is part of my yahoo site...where do I find
    5. Table prefix (if you want to run more than one WordPress in a single database) - where do I find

    Any help is much appreciated

  2. MichaelH
    Member
    Posted 4 years ago #

    Database name should already be set, meaning the database is already created. Database host should already be set, and typically is 'mysql' at Yahoo. Once you get access to the database you will be able to look at the database tables to figure the prefix (e.g. if xyzwp_posts is the name of the posts table, then 'xyzwp_' is the $table prefix).

    I believe you can determine the database admin in the Yahoo database screens. Problem is password and for that you may need to change the password to a know value, install the database admin tool phpMyAdmin and then use that name and password to access the database via phpMyAdmin to determine the $table_prefix.

    Resource:
    http://codex.wordpress.org/User:MichaelH/Installation_Notes/Yahoo

    If all else fails, call Yahoo support!!!

  3. cperry
    Member
    Posted 4 years ago #

    hmmm- well I got part of the way - I did not have mysql in that one area..... now I get:

    "Already Installed

    You appear to have already installed WordPress. To reinstall please clear your old database tables first."

    ??
    But I deleted this file - why will it not recreate it?

  4. cperry
    Member
    Posted 4 years ago #

    I tried the steps in the codex link and could only get so far. At a certain point I got the redirect loop error message.....I think my entire blog is gone.
    This is major...don't know what to do.
    Yahoo could not help earlier - have not called again. Will try but I really think it is gone.

  5. whooami
    Member
    Posted 4 years ago #

    does anyone read anything????

    deleting your wp-config.php doesnt do anything to delete content.

    your content is stored in a database.

    Yahoo CAN tell you how to make sure that your database is intact -- they ALSO have pages on THEIR site explaining how to access your database.

    ASK them for that info. You use phpmyadmin. They have pages explaining how to install it, how to use it..

    If you are getting "cannot connect" messages after editing your wp-config.php than you are probably NOT putting the right info in for the settings.

    Next time -- make a backup.

  6. cperry
    Member
    Posted 4 years ago #

    Wow - just trying to get some help and muddle through this. Don't appreciate the reply, thought this was a support forum.

  7. whooami
    Member
    Posted 4 years ago #

    im not here for your appreciation, and you got help.

    youve replied to about 3 threads now.. needlessly. your problem with your wp-config.php is solved by putting the right info in the file.

    the sky isnt falling, in other words.

    and next time -- make a backup.

  8. cperry
    Member
    Posted 4 years ago #

    found it - thanks Michal H
    could not get it to work at first.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.