How to Migrating a website from Hostinger to YesDomain Manually via Files & Database Import

Hello, This article covers migrating a Website hosted on Hostinger to YesDomain.

Migrating your WordPress/Custom website from Hostinger to YesDomain hosting is a straightforward process when done manually. This step-by-step guide will walk you through transferring your website files and database, ensuring minimal downtime and preserving your site’s integrity.

Why Migrate to Yes Domain Hosting?

  • Enhanced Performance: Experience faster load times and improved uptime.
  • Robust Security: Benefit from advanced security measures to protect your website.
  • 24/7 Support: Access round-the-clock customer support for any hosting-related queries.
  • User-Friendly Control Panel: Manage your hosting with an intuitive interface.

🛠️ Prerequisites

Before initiating the migration, ensure you have:

  • Access to your Hostinger account.
  • Access to your YesDomain hosting account.
  • A File Manager or FTP client (e.g., FileZilla).
  • Basic knowledge of phpMyAdmin for database management.

1) Login to the Hostinger Panel

Check the below screenshot for extracting the information:

Once you are logged in, you will see the interface as this:

Now click on the Hosting option on the Top Menu.

Now you will see x Websites on the Plan that would be showing on the Hostinger’s Dashboard. Click over it and it will display the websites to you. Select the website that you want to migrate and move ahead.

In our case, we are going to select the website: random. com and moving ahead with the same.


2) Now search for File Manager in the search bar that appears and expand the Files Section, then click on the file manager.

Next, click on the first option which allows you to access the files of the particular domain you selected.

Double click on the public_html folder to open it.

Now press Ctrl + A on your keyboard to select all the files in the directory.

NOTE: In the migration, please make sure that inside the public_html folder, there are no other subfolders except wp-content, wp-admin, wp-includes.

If it does, then you have to open that folder and check inside it — if that folder also contains WordPress subfolders (wp-content, wp-admin, wp-includes) — then go back and include the folder in the Ctrl + A and then click on the Download button that appears on the top.

Select the format as .tar.gz and the download of the file will start.


Step 3: Go back to home and open public_html folder again.

Now look for a file named wp-config.php in the file manager and open it.

After opening the file, look for a line that contains the DB_NAME as shown under:

define('DB_NAME', 'xxxxxxxxx');

Copy the DB Name and save it somewhere for later use.


Step 4: Now go back to the Hostinger’s hosting dashboard and then search for phpMyAdmin

After this, search for the DB_Name which you copied and saved in the last step. (Use CTRL + F to search):

Now, click on phpMyAdmin next to the database you searched for.

Now, click on the Database name in the phpMyAdmin interface, then click on the Export button, then click on Go.

This will download a .sql file which is the backup of the customer’s database.


Now, we have the backup of the files and the database.


Step 5: Now we have to upload the backup in the YesDomain’s control panel.

Access the Control Panel (DirectAdmin)

Look for the Domain Setup option and create the concerned domain over there:

Tap on the Create button and that should create the domain.


Step 6: Now go back to the control panel and search for File Manager by typing the name in the search bar. Open the file manager and go inside:

domains > your concerned domain > public_html

Once you have opened the public_html folder, right-click your mouse or touchpad and click on the Upload button, and upload the file backup which you downloaded in the first step from the file browser.

Once the file is uploaded, go ahead and extract the file as shown below:


Now, once you have opened the public_html folder, right-click your mouse or touchpad and click on the upload button, and uploaded the file backup which you downloaded in the first step from the file browser.

Once the file is uploaded, go ahead and extract the file as shown below :

Step 7: Now, search for DATABASE in the search bar in the control panel. Click on it once found.

Click on the Create Database button > Create Database.

Finally, hit the green Create Database button and it will show a success message like this:

NOTE: Please copy the information shown in the above success message in Notepad temporarily for later use.


Step 8: After this, go back to the control panel, again search for MySQL / Database , open the interface, and click on the + button next to the database you created.

This will show you three options, out of which you have to click on the third option which allows you to Login to phpMyAdmin.

This will open the phpMyAdmin interface — click on the database name and then click on Import:

Here, upload the .sql file which you downloaded from Hostinger’s phpMyAdmin and then click on the Go button available at the bottom.

After the database restore is done, you will see a message like this:


Step 9: After this, go back to the File Manager again, and go to:

domains > your domain > public_html

Open the wp-config.php file by double-clicking on it.

In the file, you should see text like this:

define('DB_NAME', 'xxxxxxx');
define('DB_USER', 'xxxxxxx');
define('DB_PASSWORD', 'xxxxxxx');
define('DB_HOST', 'localhost');

In these, you have to replace all 4 values with the ones that were shown to you during the database creation step.

However, if in case you have forgotten the same or lost the details, then to get them back again:
(Skip this and move to Step 10 if you already have them)

Search for MySQL in the control panel, look for the database you created, then click on it as it appears in blue. Click on Change Password, and then click on the blue button before the password entry box. Hit Save and it will show you the information again.

Fill the values correctly and then save your file.


After saving, it should be done.

âś… Your site should now be migrated successfully.

This process applies to any kind of website, including WordPress, custom PHP, or HTML-based websites — as long as the files and database are migrated correctly.


Leave a Comment