{"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-03-05T16:23:20","modified_gmt":"2026-03-05T16:23:20","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"},"content":{"rendered":"<p>If you have a website developed locally or backup files from a previous hosting provider (including expired Hostinger plans), this guide will walk you through uploading and restoring your website from scratch.<\/p><div class=\"\">\n<h2 id=\"Step-1-Add-the-website-to-the-new-hosting-plan-or-account\"><b>Step 1 &ndash; Add the website to the new hosting plan\/hosting account<\/b><\/h2>\n<ul>\n<li><span style=\"font-weight: 400\">In hPanel, go to <\/span><a 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 on <\/span><b>Add website<\/b><span style=\"font-weight: 400\">, and select<\/span><b> Custom PHP\/HTML website <\/b><span style=\"font-weight: 400\">as the preferred platform<\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6390 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.43.40-1024x411.png\" alt=\"\" width=\"1024\" height=\"411\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.43.40-1024x411.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.43.40-300x120.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.43.40-768x308.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.43.40.png 1152w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Insert the required details. Finally, <\/span><b>specify the preferred domain name <\/b><span style=\"font-weight: 400\">and click on <\/span><b>Continue<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">That&rsquo;s how you add your website to another hosting plan. Now, all you need to do is upload your website&rsquo;s files and databases.<\/span><\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">If you&rsquo;re going to use a domain that&rsquo;s in another Hostinger account, you may be asked to verify the domain ownership &ndash; it&rsquo;s easy &ndash; follow <\/span><a href=\"https:\/\/www.hostinger.com\/support\/4771440-how-to-verify-domain-ownership\"><span style=\"font-weight: 400\">these steps<\/span><\/a><span style=\"font-weight: 400\"> &#128161;&nbsp;<\/span><\/div>\n<h2 id=\"Step-2-Upload-your-website-backup\"><b>Step 2 &ndash; Upload your website&rsquo;s backup<\/b><\/h2>\n<p><span style=\"font-weight: 400\">There are <\/span><a href=\"https:\/\/www.hostinger.com\/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\">, but the easiest one is to use the <\/span><b>file manager.<\/b><span style=\"font-weight: 400\"> The upload limit is <\/span><b>100 GB<\/b><span style=\"font-weight: 400\">. It makes no difference if you upload the website&rsquo;s files or its database first.<\/span><\/p>\n<h3><b>Upload the website&rsquo;s files<\/b><\/h3>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to <\/span><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> <span style=\"font-weight: 400\">&rarr; <\/span><b>Dashboard <\/b><span style=\"font-weight: 400\">&rarr; <\/span><b>File Manager<\/b><span style=\"font-weight: 400\">:<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6391 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.44.55.png\" alt=\"\" width=\"482\" height=\"656\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.44.55.png 482w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.44.55-220x300.png 220w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/p>\n<ul>\n<li>Access the files of the specific website:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6393 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.45.46.png\" alt=\"\" width=\"998\" height=\"306\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.45.46.png 998w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.45.46-300x92.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.45.46-768x235.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/p>\n<ul>\n<li>Open your website&rsquo;s <b>public_html<\/b> folder, and click on <b>Upload<\/b> in the top-right:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-6394\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.46.35-300x93.png\" alt=\"\" width=\"300\" height=\"93\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.46.35-300x93.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.46.35-768x238.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.46.35.png 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Then, select <\/span><b>File<\/b><span style=\"font-weight: 400\"> and upload the backup of your<\/span><b> website&rsquo;s files<\/b><span style=\"font-weight: 400\"> (<\/span><b>.tar.gz<\/b><span style=\"font-weight: 400\">). 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.<\/span><\/li>\n<li>Once the upload is complete, right-click <span style=\"font-weight: 400\">on the file name and choose <\/span><b>Extract<\/b><span style=\"font-weight: 400\">, or click on <\/span><b>Extract <\/b><span style=\"font-weight: 400\">in the top-right:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6395 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.00.png\" alt=\"\" width=\"986\" height=\"718\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.00.png 986w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.00-300x218.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.00-768x559.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">&nbsp;Enter a folder name, e.g., <\/span><b>backup<\/b><span style=\"font-weight: 400\">, and click on <\/span><b>Extract<\/b><span style=\"font-weight: 400\">:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6396 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.39.png\" alt=\"\" width=\"658\" height=\"702\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.39.png 658w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.48.39-281x300.png 281w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\"><strong>Important<\/strong>: <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 into a dedicated folder, you may delete the backup <\/span><b>.tar.gz<\/b><span style=\"font-weight: 400\"> file &#129529;<\/span><\/div>\n<p>Now, let&rsquo;s move your website files to the correct folder.<\/p>\n<ul>\n<li>To do this, <b>open the folder containing the extracted website files<\/b> (in our case, it&rsquo;s called <i>backup<\/i>) &rarr;<b> domains<\/b> &rarr; <b>select the domain in question<\/b> &rarr; open its <b>public_html <\/b>folder, select all the files, and click on <b>Move file <\/b>in the top-right:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6397 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.07-1024x493.png\" alt=\"\" width=\"1024\" height=\"493\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.07-1024x493.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.07-300x144.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.07-768x370.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.07.png 1138w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Double-click on <\/span><b>..<\/b><span style=\"font-weight: 400\"> to go to the parent directory so that the destination would be <\/span><b>\/public_html<\/b><span style=\"font-weight: 400\">,<\/span> <span style=\"font-weight: 400\">and click on <\/span><b>Move<\/b><span style=\"font-weight: 400\">:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6398 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.59.png\" alt=\"\" width=\"670\" height=\"536\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.59.png 670w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.50.59-300x240.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/p>\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 &ndash; Import and connect your database<\/b><\/h2>\n<h3><b>Create a new database<\/b><\/h3>\n<ul>\n<li><span style=\"font-weight: 400\">Before uploading the database, you will need to create a new database where to import your database backup. Go to <\/span><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> <span style=\"font-weight: 400\">&rarr; <\/span><b>Dashboard <\/b><span style=\"font-weight: 400\">&rarr; <\/span><b>Databases<\/b><span style=\"font-weight: 400\"> &rarr; <\/span><b>Management <\/b><span style=\"font-weight: 400\">on the sidebar:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6399 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.52.20.png\" alt=\"\" width=\"480\" height=\"562\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.52.20.png 480w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.52.20-256x300.png 256w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Make sure the correct website (the one you want to upload the database to) is selected in the left drop-down menu:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6401 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.53.28.png\" alt=\"\" width=\"1016\" height=\"422\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.53.28.png 1016w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.53.28-300x125.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.53.28-768x319.png 768w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">In the section <\/span><b>Create a New MySQL Database And Database User<\/b><span style=\"font-weight: 400\">,<\/span> <span style=\"font-weight: 400\">enter the name, username, and password of your database.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><span style=\"font-weight: 400\">It&rsquo;s 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 href=\"https:\/\/www.hostinger.com\/support\/3313359-where-to-find-configuration-file-of-my-website\"><span style=\"font-weight: 400\">website&rsquo;s 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&rsquo;s in the<\/span><b> public_html<\/b><span style=\"font-weight: 400\"> &rarr; <\/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><span style=\"font-weight: 400\">:<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6402 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.54.36.png\" alt=\"\" width=\"974\" height=\"416\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.54.36.png 974w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.54.36-300x128.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.54.36-768x328.png 768w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/p>\n<p><span style=\"font-weight: 400\">This way, a new database is automatically assigned to the selected domain. It appears in the <\/span><b>List of Current MySQL Databases And Users<\/b><span style=\"font-weight: 400\"> section, where you can <\/span><a href=\"https:\/\/www.hostinger.com\/support\/1864454-how-to-manage-mysql-databases\"><span style=\"font-weight: 400\">manage<\/span><\/a><span style=\"font-weight: 400\"> it.<\/span><\/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 &#128204;<\/span><\/div>\n<\/div><h3><b>Import the database backup<\/b><\/h3><ul>\n<li><span style=\"font-weight: 400\">Click on<\/span><a href=\"https:\/\/www.hostinger.com\/support\/1583545-how-can-i-access-phpmyadmin\"> <b>Enter phpMyAdmin<\/b><\/a><span style=\"font-weight: 400\"> next to the newly created database. On phpMyAdmin, your database will be selected by default, so click on <\/span><b>Import<\/b><span style=\"font-weight: 400\">:<\/span><\/li>\n<\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6403 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png\" alt=\"\" width=\"1000\" height=\"194\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01.png 1000w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01-300x58.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.01-768x149.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p><ul>\n<li><span style=\"font-weight: 400\">Select the database backup that you&rsquo;ve downloaded previously (<\/span><b>.sql.gz<\/b><span style=\"font-weight: 400\">):<\/span><\/li>\n<\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6404 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png\" alt=\"\" width=\"1010\" height=\"434\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47.png 1010w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47-300x129.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.56.47-768x330.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/p><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><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 href=\"https:\/\/www.hostinger.com\/support\/1884149-how-to-import-a-database-with-phpmyadmin#possible-issues-when-importing-a-database\"> <span style=\"font-weight: 400\">possible issues when importing a database<\/span><\/a><span style=\"font-weight: 400\"> &#128161;<\/span><\/p><h3><b>Connect the database with your website<\/b><\/h3><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&rsquo;s configuration file:<\/span><a href=\"https:\/\/www.hostinger.com\/support\/1583552-how-to-find-mysql-database-details\"> <span style=\"font-weight: 400\">How to find MySQL database details<\/span><\/a><span style=\"font-weight: 400\"> &#128161;<\/span><\/p><ul>\n<li><span style=\"font-weight: 400\">Open your<\/span><a href=\"https:\/\/www.hostinger.com\/support\/3313359-where-to-find-configuration-file-of-my-website\"> <span style=\"font-weight: 400\">website&rsquo;s 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><p>&nbsp;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><span style=\"font-weight: 400\">For WordPress websites, it&rsquo;s in the<\/span><b> public_html<\/b><span style=\"font-weight: 400\"> &rarr; <\/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><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6405 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png\" alt=\"\" width=\"1018\" height=\"570\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09.png 1018w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09-300x168.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/11\/Screenshot-2025-11-03-at-10.58.09-768x430.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/p><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><h3><b>Test the website<\/b><\/h3><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: &bull; All pages load correctly &bull; Images and media display properly &bull; Forms and interactive features work &bull; Login functionality works (if applicable)<\/span><\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">Tip: Use whatsmydns.net (<\/span><a 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><div><\/div><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&rsquo;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 &rarr; Extract 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 hPanel<\/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> &rarr; <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&rsquo;s 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>If you have a website developed locally or backup files from a previous hosting provider (including expired Hostinger plans), this guide will walk you through&#8230;<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/6582\/revisions"}],"predecessor-version":[{"id":6585,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/6582\/revisions\/6585"}],"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}]}}