{"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-10-30T06:44:46","modified_gmt":"2026-10-30T06:44:46","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\">Restore a WordPress website with only a database backup in Hostinger when the website files are missing or corrupted. Import the database, install a fresh copy of WordPress, reinstall your theme and plugins, recreate permalinks, and re-upload images. This is a partial recovery, so some elements or features may be incomplete.<\/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><h2 id=\"h_17d0d18eda\">Step 1 &ndash; Import the database<\/h2><p class=\"no-margin\">If the database backup is still stored in Hostinger dashboard, you can <a data-click-id=\"hgr-post-content-link-restore-the-database-from-hostinger-backups\" href=\"\/support\/4283700-how-to-restore-backups-at-hostinger\/\">restore the database from Hostinger backups<\/a> and continue with Step 2. Otherwise, locate your database file on your device: it should be in .sql file format.&nbsp;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\">Next, follow these steps:<\/p><ol>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-create-a-new-database\" class=\"intercom-content-link\" href=\"\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">Create a new database<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-open-the-database-via-phpmyadmin\" class=\"intercom-content-link\" href=\"\/support\/1583545-how-to-access-phpmyadmin-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">Open the database via phpMyAdmin<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-import-the-database-sql-file-from-your-local-device\" class=\"intercom-content-link\" href=\"\/support\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">Import the database (.sql file) from your local device<\/a><\/p>\n<\/li>\n<\/ol><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 data-click-id=\"hgr-post-content-link-official-website\" class=\"intercom-content-link\" href=\"https:\/\/wordpress.org\/download\" target=\"_blank\" rel=\"noopener\">official website<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-upload-them\" class=\"intercom-content-link\" href=\"\/support\/1884234-how-to-upload-backups-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">Upload them<\/a> using any preferred option: Import site, 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 data-click-id=\"hgr-post-content-link-database-details\" class=\"intercom-content-link\" href=\"\/support\/1583552-how-to-find-your-mysql-database-details-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">database details<\/a>. Insert the data from the database you created in the previous step:<\/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\">Once the database connection is correctly established, you will get a message indicating that WordPress is already installed:<\/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\">Click on <b>Log in<\/b> and enter the old credentials you used for your original website.<\/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><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 data-click-id=\"hgr-post-content-link-install-your-previous-theme\" class=\"intercom-content-link\" href=\"\/tutorials\/how-to-install-wordpress-themes\/\" target=\"_blank\" rel=\"noopener\">install your previous theme.<\/a><\/p>\n<\/div><p class=\"no-margin\">After installing the theme, open the <b>Plugins <\/b>menu and <a data-click-id=\"hgr-post-content-link-install-the-missing-plugins\" class=\"intercom-content-link\" href=\"\/tutorials\/how-to-install-wordpress-plugins\/\" target=\"_blank\" rel=\"noopener\">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><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\">This will help you identify all the plugins you need to install.<\/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 data-click-id=\"hgr-post-content-link-recreate-the-permalinks\" class=\"intercom-content-link\" href=\"\/support\/3490582-how-to-recreate-permalinks-on-wordpress-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">recreate the permalinks<\/a>.<\/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><h3 id=\"h_4c8b3ea683\">Broken Link Checker plugin<\/h3><p class=\"no-margin\">Install and activate the <a data-click-id=\"hgr-post-content-link-broken-link-checker\" class=\"intercom-content-link\" href=\"https:\/\/wordpress.org\/plugins\/broken-link-checker\/\" target=\"_blank\" 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><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><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 data-click-id=\"hgr-post-content-link-internet-archive\" class=\"intercom-content-link\" href=\"https:\/\/archive.org\/\" target=\"_blank\" rel=\"noopener\">Internet Archive<\/a> using the WayBackMachine section. Enter your website address on the search bar:<\/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\">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><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\">Once there, find the specific images, download them from the archived version, and upload them back to your website.<\/p><p>Your WordPress website is now restored as fully as possible using only the database. If you later find a backup with both files and database, <a data-click-id=\"hgr-post-content-link-restore-your-wordpress-website-from-backups\" href=\"\/support\/3989447-how-to-restore-a-wordpress-website-from-backups-in-hostinger\/\">restore your WordPress website from backups<\/a> instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restore a WordPress website with only a database backup in Hostinger: import the database, reinstall WordPress, then fix themes, links, and images.<\/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-BR","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-\u044f\u043a-\u0432\u0456\u0434\u043d\u043e\u0432\u0438\u0442\u0438-\u0441\u0430\u0439\u0442-wordpress-\u0437\u0430-\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e-\u0440\u0435\u0437","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":6,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/957\/revisions"}],"predecessor-version":[{"id":23972,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/957\/revisions\/23972"}],"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}]}}