{"id":6582,"date":"2025-11-07T11:33:32","date_gmt":"2025-11-07T11:33:32","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=6582"},"modified":"2026-11-27T08:45:48","modified_gmt":"2026-11-27T08:45:48","slug":"how-to-upload-a-website-from-backups","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-upload-a-website-from-backups\/","title":{"rendered":"How to upload a website from backups at Hostinger"},"content":{"rendered":"<p>Uploading a website from backups at Hostinger works two ways: upload your archive directly while adding the website, or add your files and database manually through File Manager and phpMyAdmin afterward. This guide covers both paths, whether you&#8217;re restoring a site developed locally or migrating backup files from a previous hosting provider, including expired Hostinger plans.<\/p>\n<div class=\"\">\n<h2 id=\"Step-1-Add-the-website-to-the-new-hosting-plan-or-account\"><b>Step 1 \u2013 Add the website to the new hosting plan\/hosting account<\/b><\/h2>\n<ul>\n<li><span style=\"font-weight: 400\">In Hostinger dashboard, go to <\/span><a data-click-id=\"hgr-post-content-link-websites\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a><span style=\"font-weight: 400\">, find the preferred hosting plan, click <\/span><b>Create site<\/b><span style=\"font-weight: 400\">, and select<\/span><b> PHP\/HTML website <\/b><span style=\"font-weight: 400\">as the preferred platform.<br \/>\n<\/span><img decoding=\"async\" class=\"alignnone size-full wp-image-21976\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-28_15-05.png\/public\" alt=\"\" width=\"1129\" height=\"618\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-28_15-05.png\/w=1129,fit=scale-down 1129w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-28_15-05.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-28_15-05.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-28_15-05.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/li>\n<li>In the <strong>Connect a domain<\/strong> card, search for a domain or type one you own, or select one of your domains from the list, marked <strong>Owned<\/strong>. Then click <strong>Next<\/strong>, or click <strong>Continue with temporary domain<\/strong> to set one up later.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26245\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_14-15.png\" alt=\"\" width=\"870\" height=\"486\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_14-15.png 870w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_14-15-300x168.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_14-15-768x429.png 768w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/li>\n<li>In the <strong>How do you want to set up your website?<\/strong> card, select <strong>Upload website files<\/strong> and click <strong>Continue<\/strong>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26265\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36.png\" alt=\"\" width=\"786\" height=\"673\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36.png 786w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36-300x257.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36-768x658.png 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/li>\n<li>In the <strong>Upload your website files<\/strong> card, drag and drop your files or click <strong>Upload<\/strong>, then click <strong>Continue<\/strong>. Upload an archive (.zip, .sql, .tar, .tar.gz, .tgz, .7z, .gz, .sql.gz) including your database file, or individual .html, .htm, .css, and .js files. Hostinger dashboard then shows the deployment status, followed by a website preview once setup completes successfully.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26266\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36_1.png\" alt=\"\" width=\"804\" height=\"750\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36_1.png 804w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36_1-300x280.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-27_15-36_1-768x716.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/li>\n<li>To skip uploading for now, click <strong>Start empty instead<\/strong>. The <strong>Your website is ready<\/strong> screen appears, and you can upload your files.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-25325\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29.png\" alt=\"\" width=\"1904\" height=\"849\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29.png 1904w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29-300x134.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29-1024x457.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29-768x342.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-12_13-29-1536x685.png 1536w\" sizes=\"(max-width: 1904px) 100vw, 1904px\" \/><\/li>\n<\/ul>\n<p>That\u2019s how you add your website to another hosting plan. If you didn\u2019t upload your website files during setup, or need to upload them separately, continue to Step 2 below to upload your website\u2019s files and database using File Manager.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">If you\u2019re going to use a domain that\u2019s in another Hostinger account, you may be asked to <a data-click-id=\"hgr-post-content-link-verify-the-domain-ownership\" href=\"\/support\/4771440-how-to-verify-domain-ownership-at-hostinger\/\">verify the domain ownership.<\/a><\/span><\/div>\n<h2 id=\"Step-2-Upload-your-website-backup\"><b>Step 2 \u2013 Upload your website\u2019s backup<\/b><\/h2>\n<p><span style=\"font-weight: 400\">If you skipped uploading your website files during setup, there are <\/span><a data-click-id=\"hgr-post-content-link-multiple-ways-to-upload-backups\" href=\"\/support\/1884234-how-to-upload-backups-at-hostinger\/\"><span style=\"font-weight: 400\">multiple ways to upload backups<\/span><\/a><span style=\"font-weight: 400\">, the easiest one is to use the <\/span><b>file manager.<\/b><span style=\"font-weight: 400\"> Each file can be up to 64 GB.<\/span><span style=\"font-weight: 400\"> It makes no difference if you upload the website\u2019s files or its database first.<\/span><\/p>\n<h3><b>Upload the website\u2019s files<\/b><\/h3>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to <\/span><a data-click-id=\"hgr-post-content-link-websites-2\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> <span style=\"font-weight: 400\">\u2192 <\/span><b>Manage site <\/b><span style=\"font-weight: 400\">\u2192 <\/span><b>File Manager<\/b><span style=\"font-weight: 400\">:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24637\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-17.png\" alt=\"\" width=\"263\" height=\"290\" \/><br \/>\n<\/span><\/li>\n<\/ol>\n<ul>\n<li>Open your website\u2019s public_html folder, and click <strong>Upload \u2192 Upload files<\/strong> in the top-right:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24619\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388.png\" alt=\"\" width=\"1554\" height=\"368\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388.png 1554w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-300x71.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-1024x242.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-768x182.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_13-30-e1793861437388-1536x364.png 1536w\" sizes=\"(max-width: 1554px) 100vw, 1554px\" \/><\/li>\n<li><span style=\"font-weight: 400\">Then, drag the backup of your website\u2019s files (.tar.gz) into the<strong> Upload files<\/strong> window, or click <strong>Choose files<\/strong> and select it. Sit back and give it some time: depending on the size of the backup and the internet speed, it may take up to an hour.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24633\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-09.png\" alt=\"\" width=\"548\" height=\"397\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-09.png 548w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-09-300x217.png 300w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><br \/>\n<\/span><\/li>\n<li>Once the upload is complete, right-click the file name and choose <strong>Extract here<\/strong>:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24634\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-10.png\" alt=\"\" width=\"358\" height=\"275\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-10.png 358w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-10-300x230.png 300w\" sizes=\"(max-width: 358px) 100vw, 358px\" \/><\/li>\n<\/ul>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\"><code class=\"c-mrkdwn__code\" data-stringify-type=\"code\">tar.gz<\/code> files generated by Hostinger include the files of all the websites hosted on the hosting plan, so make sure to keep all the needed files and folders in the <code class=\"c-mrkdwn__code\" data-stringify-type=\"code\">public_html<\/code> folder. Once the website files are extracted, you may delete the backup .tar.gz file.<\/span><\/div>\n<p>Now, let\u2019s move your website files to the correct folder.<\/p>\n<ul>\n<li>To do this, open the folder containing the extracted website files (in our case, it\u2019s called backup) \u2192 domains \u2192 select the domain in question \u2192 open its public_html folder, select all the files, right-click them, and choose<strong> Copy or move<\/strong> \u2192 <strong>Move to<\/strong>:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24635\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-12.png\" alt=\"\" width=\"414\" height=\"303\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-12.png 414w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-12-300x220.png 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/li>\n<li>Choose public_html in the folder list, or type it in Find a folder, and click <strong>Move here<\/strong>:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24636\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-14.png\" alt=\"\" width=\"287\" height=\"333\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-14.png 287w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_14-14-259x300.png 259w\" sizes=\"(max-width: 287px) 100vw, 287px\" \/><\/li>\n<\/ul>\n<p><b>The goal is to have all the website files in the public_html folder.<\/b><\/p>\n<h2 id=\"Step-3-Import-and-connect-your-database\"><b>Step 3 \u2013 Import and connect your database<\/b><\/h2>\n<h3><b>Create a new database<\/b><\/h3>\n<ul>\n<li>Before uploading the database, you will need to create a new database where to import your database backup. Go to <a data-click-id=\"hgr-post-content-link-websites-3\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> \u2192 <b>Manage site<\/b> \u2192 <b>Databases<\/b> on the sidebar, click <b>Add database<\/b>, select <b>Create a new database<\/b>, and click <b>Continue.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26007\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10.png\" alt=\"\" width=\"546\" height=\"360\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10.png 546w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10-300x198.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><br \/>\n<\/b><\/li>\n<li>Make sure the correct website (the one you want to upload the database to) is selected in the <b>Website name<\/b> dropdown at the top of the sidebar.<\/li>\n<li>In the <b>Create a MySQL database and user<\/b> window, enter the <b>MySQL database name<\/b>, <b>MySQL username<\/b>, and <b>Password<\/b> of your database.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26013\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19.png\" alt=\"\" width=\"552\" height=\"517\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19.png 552w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19-300x281.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/li>\n<\/ul>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><span style=\"font-weight: 400\">It\u2019s recommended to use the same name and password as in the original database. You can find and copy those details by opening your <\/span><a data-click-id=\"hgr-post-content-link-websites-configuration-file\" href=\"\/support\/3313359-how-to-find-the-website-s-configuration-file-at-hostinger\/\"><span style=\"font-weight: 400\">website\u2019s configuration file<\/span><\/a><span style=\"font-weight: 400\"> in the file manager.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For<\/span> <span style=\"font-weight: 400\">WordPress websites, it\u2019s in the<\/span><b> public_html<\/b><span style=\"font-weight: 400\"> \u2192 <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400\"> file:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_NAME = MySQL database name, e.g., u123456789_<\/span><b>abcd<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_USER = MySQL username, e.g., u123456789_<\/span><b>efgh<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_PASSWORD = your preferred password<\/span><\/li>\n<\/ul>\n<\/div>\n<ul>\n<li><span style=\"font-weight: 400\">Once you fill in the details, click on <\/span><b>Create.<\/b><\/li>\n<\/ul>\n<p>This way, a new database is automatically assigned to the selected website. It appears on the website\u2019s <b>Databases<\/b> page, where you can <a data-click-id=\"hgr-post-content-link-manage\" href=\"\/support\/1864454-how-to-manage-mysql-databases-in-hostinger\/\">manage<\/a> it.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">The first part of the database name and username (u123456789) is unique and <\/span><b>cannot <\/b><span style=\"font-weight: 400\">be removed or changed.<\/span><\/div>\n<\/div>\n<h3><b>Import the database backup<\/b><\/h3>\n<ul>\n<li>Click <a data-click-id=\"hgr-post-content-link-phpmyadmin\" href=\"\/support\/1583545-how-to-access-phpmyadmin-at-hostinger\/\"><b>phpMyAdmin<\/b><\/a> next to the newly created database. On phpMyAdmin, your database will be selected by default, so click on <b>Import<\/b>:<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-6403 size-full\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png\/public\" alt=\"phpMyAdmin database view with the Import tab highlighted\" width=\"1000\" height=\"194\" data-media-id=\"6403\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png\/w=1000,fit=scale-down 1000w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Select the database backup that you\u2019ve downloaded previously (<\/span><b>.sql.gz<\/b><span style=\"font-weight: 400\">):<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-6404 size-full\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png\/public\" alt=\"phpMyAdmin import page with file upload field and Choose file button highlighted\" width=\"1010\" height=\"434\" data-media-id=\"6404\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png\/w=1010,fit=scale-down 1010w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Proceed further without changing anything on the settings and click on <\/span><b>Go <\/b><span style=\"font-weight: 400\">or <\/span><b>Import<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">If you encounter issues importing the <\/span><b>.sql.gz <\/b><span style=\"font-weight: 400\">file, extract it to the <\/span><b>.sql <\/b><span style=\"font-weight: 400\">format and try uploading it again; learn more about<\/span><a data-click-id=\"hgr-post-content-link-possible-issues-when-importing-a-database\" href=\"\/support\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger\/#possible-issues-when-importing-a-database\"> <span style=\"font-weight: 400\">possible issues when importing a database.<\/span><\/a><\/p>\n<h3><b>Connect the database with your website<\/b><\/h3>\n<p><b><\/b><span style=\"font-weight: 400\">The final step is to make sure that your database connection details (name, username, password) match the details in your website\u2019s configuration file:<\/span><a data-click-id=\"hgr-post-content-link-how-to-find-mysql-database-details\" href=\"\/support\/1583552-how-to-find-your-mysql-database-details-in-hostinger\/\"> <span style=\"font-weight: 400\">How to find MySQL database details.<\/span><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Open your<\/span><a data-click-id=\"hgr-post-content-link-websites-configuration-file-2\" href=\"\/support\/3313359-how-to-find-the-website-s-configuration-file-at-hostinger\/\"> <span style=\"font-weight: 400\">website\u2019s configuration file<\/span><\/a><span style=\"font-weight: 400\"> and update those details to match those of the new database. Make sure to update the username, as it will definitely be different!<\/span><\/li>\n<\/ul>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><span style=\"font-weight: 400\">For WordPress websites, it\u2019s in the<\/span><b> public_html<\/b><span style=\"font-weight: 400\"> \u2192 <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400\"> file:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_NAME = MySQL database name, e.g., u123456789_<\/span><b>abcd<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_USER = MySQL username, e.g., u123456789_<\/span><b>efgh<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">DB_PASSWORD = your preferred password<\/span><\/li>\n<\/ul>\n<\/div>\n<p><img decoding=\"async\" class=\"alignnone wp-image-6405 size-full\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png\/public\" alt=\"WordPress wp-config.php showing highlighted database name, username and password fields\" width=\"1018\" height=\"570\" data-media-id=\"6405\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png\/w=1018,fit=scale-down 1018w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p><span style=\"font-weight: 400\">After connecting the database, the process is completed, and your website is now hosted on another Hostinger account using the same domain.<\/span><\/p>\n<h3><b>Test the website<\/b><\/h3>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Clear your browser cache<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Visit your website<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Check that:<br \/>\n\u2022 All pages load correctly<br \/>\n\u2022 Images and media display properly<br \/>\n\u2022 Forms and interactive features work<br \/>\n\u2022 Login functionality works (if applicable)<\/span><\/li>\n<\/ol>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">Use whatsmydns.net (<\/span><a data-click-id=\"hgr-post-content-link-https-www-whatsmydns-net\" href=\"https:\/\/www.whatsmydns.net\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">https:\/\/www.whatsmydns.net\/<\/span><\/a><span style=\"font-weight: 400\">) to check if DNS changes have propagated globally.<\/span><\/div>\n<div>\n<h2 id=\"Fixing-common-issues-after-uploading-a-backup\"><b>Fixing common issues after uploading a backup<\/b><\/h2>\n<p class=\"whitespace-normal break-words\">If your website doesn&#8217;t work after following the steps above, check these common issues:<\/p>\n<p class=\"whitespace-normal break-words\"><strong>Files not properly extracted or located<\/strong><\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-2.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Make sure you extracted the backup archive (right-click \u2192<strong> Extract here<\/strong> in File Manager)<\/li>\n<li class=\"whitespace-normal break-words\">Verify files are directly in <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">public_html<\/code> (or subdomain folder), not nested in additional folders<\/li>\n<li class=\"whitespace-normal break-words\">Confirm <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">index.php<\/code> or <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">index.html<\/code> is at the root level<\/li>\n<\/ul>\n<p class=\"whitespace-normal break-words\"><strong>Database connection problems<\/strong><\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-2.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Double-check that database credentials in your config file match the new ones from Hostinger dashboard<\/li>\n<li class=\"whitespace-normal break-words\">Update the database password if you created a new one during setup<\/li>\n<li class=\"whitespace-normal break-words\">Ensure database name and username include the account prefix (e.g., <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">u123456_dbname<\/code>)<\/li>\n<\/ul>\n<p class=\"whitespace-normal break-words\"><strong>WordPress permalink issues<\/strong><\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-2.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Log in to WordPress admin and go to <strong>Settings<\/strong> \u2192 <strong>Permalinks<\/strong><\/li>\n<li class=\"whitespace-normal break-words\">Click <strong>Save Changes<\/strong> without modifying anything to regenerate rewrite rules<\/li>\n<\/ul>\n<p><b>Cache<\/b><\/p>\n<p>If you are still not seeing the correct content, this might be related to browser cache. There are some steps you can take to see your website working, starting with the easiest ones:<\/p>\n<ol>\n<li>Access your website using Incognito mode<\/li>\n<li>Then, clear your browser\u2019s cache: How to Clear Browser Cache<\/li>\n<li>Use a different device\/computer\/mobile connectivity (3G\/4G\/5G) instead of Wi-Fi<\/li>\n<li>Turn off your modem\/router for 2 minutes and reboot it<\/li>\n<li>Clear your DNS cache by following this guide<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Upload a website from backups at Hostinger: upload the archive while adding the website, or add files and the database manually afterward.<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[272],"tags":[],"class_list":["post-6582","post","type-post","status-publish","format-standard","hentry","category-uploading-a-backup"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-upload-a-website-from-backups","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/6582","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\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=6582"}],"version-history":[{"count":19,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/6582\/revisions"}],"predecessor-version":[{"id":26268,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/6582\/revisions\/26268"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=6582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=6582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=6582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}