{"id":957,"date":"2022-04-18T15:17:21","date_gmt":"2022-04-18T15:17:21","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/04\/18\/6149777-how-to-restore-a-wordpress-website-with-only-a-database-backup-in-hostinger\/"},"modified":"2026-03-16T12:12:08","modified_gmt":"2026-03-16T12:12:08","slug":"6149777-how-to-restore-a-wordpress-website-with-only-a-database-backup-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6149777-how-to-restore-a-wordpress-website-with-only-a-database-backup-in-hostinger\/","title":{"rendered":"How to Restore a WordPress Website With Only a Database Backup in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">If you have both your website&rsquo;s files and database backups, follow this guide: <a href=\"\/support\/3989447-how-to-restore-wordpress-website-from-backups\" target=\"_blank\" class=\"intercom-content-link\">restore your WordPress website<\/a>. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Alternatively, if your WordPress website backup files are <b>missing or corrupted<\/b>,&nbsp;but you still have the&nbsp;<b>database<\/b>,&nbsp;you can&nbsp;try to recover your website by following the steps below.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">This method allows for a <b>partial recovery<\/b> due to the missing data from the website files. Some elements or features may be incomplete or unavailable.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_17d0d18eda\">Step 1 &ndash; Import the database <\/h2><p class=\"no-margin\">Locate your database file on your device: it should be in <b>.sql<\/b> file format. If your database backup is in an archive format, such as <b>.sql.gz<\/b>, make sure to unpack it first.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, follow these steps:<\/p><ol>\n<li>\n<p class=\"no-margin\"><a href=\"\/support\/1583542-how-can-i-create-a-new-mysql-database\" target=\"_blank\" class=\"intercom-content-link\">Create a new database<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a href=\"\/support\/1583545-how-to-access-phpmyadmin-in-hpanel\" target=\"_blank\" class=\"intercom-content-link\">Open the database via phpMyAdmin<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a href=\"\/support\/1884149-how-to-import-a-database-with-phpmyadmin\" target=\"_blank\" class=\"intercom-content-link\">Import the database (.sql file) from your local device<\/a><\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">\n<\/p><h2 id=\"h_81df2db94d\">Step 2 &ndash; Restore the WordPress installation<\/h2><p class=\"no-margin\">Create a <b>fresh WordPress installation <\/b>on your hosting:<\/p><ol>\n<li>\n<p class=\"no-margin\">Download the WordPress installation files from the <a href=\"https:\/\/wordpress.org\/download\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">official website<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a href=\"\/support\/1884234-how-to-upload-backup-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">Upload them<\/a> using any preferred option: Import Website, File Manager, FTP, etc.<\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">Once the WordPress files are uploaded, access your WordPress Admin area:<\/p><ol>\n<li>\n<p class=\"no-margin\">Open this URL on your browser: <b><code>domain.tld\/wp-admin<\/code><\/b>, replacing <b><code>domain.tld<\/code><\/b> with your domain name<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Choose the language<b> <\/b>for your website, and click on <b>Let&rsquo;s go!<\/b><\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">You will be required to provide the <a href=\"\/support\/1583552-how-to-find-my-mysql-database-details\" target=\"_blank\" class=\"intercom-content-link\">database details<\/a>. Insert the data from the database you created in the previous step:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/fc74da0f-13bc-4432-8385-b96b9137e86e.jpg\" alt=\"The section to enter the database connection details for a new WordPress installation\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once the database connection is correctly established, you will get a message indicating that WordPress is already installed: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/ff8f5958-76e6-4a2f-ad94-40b9a2b2ab45.jpg\" alt=\"The Already Installed message from WordPress\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Click on <b>Log in<\/b> and enter the old credentials you used for your original website.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you don&rsquo;t get the &ldquo;Already Installed&rdquo; notification, start over from the first step, making sure to double-check the database credentials and table prefix.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_44778870f7\">Step 3 &ndash; Reinstall the theme and plugins<\/h2><p class=\"no-margin\">With this restoration, your posts and pages, settings, custom CSS files, and users will be recovered. Next, reinstall the theme and plugins so that your website displays properly.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Make sure to <a href=\"https:\/\/www.hostinger.com\/tutorials\/wordpress\/how-to-install-wordpress-themes\" target=\"_blank\" class=\"intercom-content-link\">install your previous theme<\/a> &#128161; <\/p>\n<\/div><p class=\"no-margin\">After installing the theme, open the <b>Plugins <\/b>menu and <a href=\"https:\/\/www.hostinger.com\/tutorials\/wordpress\/how-to-install-wordpress-plugins\" target=\"_blank\" class=\"intercom-content-link\">install the missing plugins<\/a>. Since the database has records of all of the plugins you have previously installed, you will get a warning about each plugin that is missing:  <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/950c3249-f431-4273-8bf7-3b9272e67a2a.jpg\" alt=\"The Plugins section on the WordPress Admin area showing the missing plugins\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">This will help you identify all the plugins you need to install.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_91ab0a6282\">Step 4 &ndash; Fix links<\/h2><p class=\"no-margin\">To ensure the internal links on your website work correctly, <a href=\"\/support\/3490582-how-to-recreate-permalinks-in-wordpress\" target=\"_blank\" class=\"intercom-content-link\">recreate the permalinks<\/a>. <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_faa2a203d6\">Step 5 &ndash; Fix images<\/h2><p class=\"no-margin\">Since databases don&rsquo;t store images, you will need to re-upload each image. To help you with this task, you can use the following tools &#128071; <\/p><p class=\"no-margin\">\n<\/p><h3 id=\"h_4c8b3ea683\">Broken Link Checker plugin<\/h3><p class=\"no-margin\">Install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/broken-link-checker\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Broken Link Checker<\/a> plugin. Next, open the plugin&rsquo;s settings, and there will be a list of broken links. This will help you determine which images are missing and their previous location. All you need to do is re-upload these images: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/89ae7cac-df71-4b5a-bfa3-32d98cedee14.jpg\" alt=\"The Broken Link Checker settings showing some broken links found\"><\/div><p class=\"no-margin\">\n<\/p><h3 id=\"h_9460706e87\">Internet Archive<\/h3><p class=\"no-margin\">If some or all of your images are missing, you can try to retrieve them from the <a href=\"https:\/\/archive.org\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Internet Archive<\/a> using the WayBackMachine section. Enter your website address on the search bar:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/3f1c3ec5-5d94-470b-8236-bea7f85b8308.jpg\" alt=\"The WayBackMachine search bar\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If there are any snapshots available for your website, they will be shown as blue circles around certain dates on the calendar. Click on your preferred date to access that version of your website:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/1ba8e1d8-af26-4d23-bc3e-d7e1d23177b2.jpg\" alt=\"The WayBackMachine search results showing snapshot availability by date\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once there, find the specific images, download them from the archived version, and upload them back to your website. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! Your website has now been restored in the most comprehensive way possible using only the database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to restore your WordPress websites if the files are missing<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[236],"tags":[],"class_list":["post-957","post","type-post","status-publish","format-standard","hentry","category-backups-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6149777-how-to-restore-a-wordpress-website-with-only-a-database-backup-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6149777-como-restaurar-un-sitio-wordpress-con-solo-una-copia-de-la-base-de-datos-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6149777-comment-restaurer-un-site-web-wordpress-a-partir-d-une-sauvegarde-de-la-base-de-donnees-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/6149777-cara-memulihkan-website-wordpress-hanya-dari-backup-database-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/6149777-como-restaurar-um-site-wordpress-apenas-do-backup-do-banco-de-dados-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/6149777----wordpress---\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=957"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/957\/revisions"}],"predecessor-version":[{"id":3878,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/957\/revisions\/3878"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}