Support » Fixing WordPress » yikes! deleted a wp-config.php file

  • Resolved cperry


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.


    If all else fails, call Yahoo support!!!

    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?

    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.




    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.

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




    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.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘yikes! deleted a wp-config.php file’ is closed to new replies.