• Resolved aprilcartergrant

    (@aprilcartergrant)


    So, I was making a second WP blog on my server and accidentally uploaded the altered wp-config.php to my EXISTING blog with hundreds of entries.

    I’ve checked the database to make sure all original data (posts, comments, etc.) are retained, and they are. Good.

    When I went to the index page, it required another run of the wp-config.php file, and all database/user settings are correct.

    However, now when I go to the index page, I get the default “Hello World” entry that everyone starts with.

    I tried exporting my MySQL data as XML and CSV and then importing it into the blog, but no success.

    ANY SUGGESTIONS?

    Thanks!
    April

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just manually edit your wp-config.php back to your old details and hope that you screwing around with the install and import didn’t mess with your existing posts.

    Thread Starter aprilcartergrant

    (@aprilcartergrant)

    The details in the wp-config.php are correct and SHOULD be accessing the existing data. That’s what I’m having trouble with.

    aprilcartergrant, have you backed everything up? Also, what I usually do after getting a new blog up and running is, I download a copy of all the files including the wp-config.php file to the harddrive.

    And then if something goes wrong, I’d just upload that file that might have been screwed up. Like Viper007Bond said, as long as your DB connection settings in the wp-config.php file is right..you should have that existing data there and showing up.. =)

    That happened to me before, I accidently uploaded the wrong wp-config.php file into the wrong directory and it was screwy, but then reuploaded the proper one that I had originally had, and it was ok. So, maybe something isn’t quite right in that wp-config.php file. :/

    <?php
    // ** MySQL settings ** //
    //Added by WP-Cache Manager
    define('DB_NAME', 'TheOneYouHaveForThisBlog'); // The name of the database
    define('DB_USER', 'TheOneYouHaveForThisBlog'); // Your MySQL username
    define('DB_PASSWORD', 'TheOneYouHaveForThisBlog'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* Stop editing */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    And also make sure the table prefixes are ok as well. I hope you get this straightened out soon. =)

    spencerp

    Thread Starter aprilcartergrant

    (@aprilcartergrant)

    Thanks everyone for your input; I’ve tried the things you’ve shared and still am screwing with it. But I appreciate the help. Update to come.

    THanks!
    april

    As I was saying about backing everything up, apparently some little moron oversea kids hacked my blog’s and coppermine gallery while I wasn’t online.

    https://www.vindictivebastard.net/brand-new-fucking-god-damn-kids.htm/

    I think they entered through the gallery though… :/ I had been getting requests for uploads by ALOT of Arabian or overseas peoples lately. Emails letting me know of uploads being done or requested.

    But thank God I backed up everything though. I lost the gallery and other two blog’s as well.. But the other two blog’s weren’t the latest versions of WP anyways, so I’ll just reinstall them then via the Fantastico in the control panel and add the stuff back to them. =)

    Atleast the main blog is up and running again. =)

    spencerp

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Accidentally replaced my wp-config file; how do I re-access existing data?’ is closed to new replies.