Support » Fixing WordPress » Restoring from a hacked installation

  • Hi

    I have a wordpress installation with a few posts and it was hacked. I want to install all of it on a new hosting environment but I’m not sure if it is a good idea to restore completely the hacked database or just a few tables out of it. If the later is the best choice, I’m not sure what tables I must move and what tables I can safely ignore.

    What is your suggestion?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • If the site is small enough, then I’d strongly suggest re-creating from scratch.

    Once hacked, you never know what gremlins are lurking in the code that will surface again at some point.

    I tried to fix a hacked site six months ago using the Securi stite check. It got rid of most of the nasties, but a month later the hackers were back.

    Hi, thanks for the answers.

    Unfortunately the site is not that small… It is something like 150 posts by a couple of users with tags, comments etc… That’s why I’m looking into moving a few tables so that I can have a quick look at these tables before I move them.

    But I’m not sure what tables to move to the new installation. How can I find out what table has what kind of information for the installation?

    Hi,

    If you want to get your posts and their comments from the old site then take only these tables.

    wp_posts
    wp_postmeta
    wp_comments
    wp_commentmeta

    but I would suggest to also take backup of the new tables in case if it did not work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Restoring from a hacked installation’ is closed to new replies.