I accidentally deleted mySQL database, and I have no way to restore the database.

I still have all the files like wp-admin, wp-content, wp-config.php and so on.

If I create a new website with all blank pages. Would there be an easy way to restore my previous pages from the files I have?

  • Did you used any backup plugin in your site ?? Sep 28, 2018 at 5:09

2 Answers 2


Content in WordPress is inside the WordPress database.

If you have deleted the WP database, then the content is gone. Installing a new WP instance will create a new, mostly blank database.

So, unless you have a backup copy of your database to restore, your content is gone.

Your hosting place may have made a backup of things, including your database. So you might contact them to see if they can restore your databases.

Unless the hosting place has a backup copy (many do), you might be out of luck. Sorry.

(For 'lurkers' ... do you have a backed up / offsite copy of your WordPress database? There are many plugins that will do that for you.)


You seem out of luck, my friend, but search your page here: https://web.archive.org/ it MAY save your sanity.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.