The Wild

How to Migrate from GoDaddy to Hostinger

· 6 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating your website from GoDaddy to Hostinger moves your domain, files, databases, and email to a new host with better performance and often lower costs. This guide covers the full process—from backing up your site to updating DNS—so you can switch without downtime or data loss. Before starting, make sure you have access to your GoDaddy account, your domain registrar login (if different), and your Hostinger account. You'll also need your website's login credentials (like WordPress admin) and any email account passwords.

What You'll Need

  • GoDaddy account credentials (for domain and hosting)
  • Hostinger account (sign up if you haven't already)
  • Access to your website's admin panel (e.g., WordPress, cPanel)
  • FTP client (like FileZilla) or Hostinger's file manager
  • A temporary location to store backups (local computer or cloud storage)
  • Email client or webmail access if you have email accounts

Step-by-Step

  1. Back up your website files. Log into your GoDaddy cPanel (or Plesk) and open the File Manager. Select all files in the public_html directory, compress them into a ZIP file, and download it to your computer. If you have a large site, use FTP to download the files instead.
  2. Export your database. In GoDaddy's phpMyAdmin, select your database, click the “Export” tab, choose “Quick” or “Custom” (select all tables), and download the SQL file. If you have multiple databases, export each one.
  3. Create a backup of your email (optional). If you use GoDaddy email, export your contacts and messages via webmail or an email client (like Outlook) to a PST or MBOX file. You can also set up forwarding temporarily.
  4. Set up Hostinger hosting. Purchase a hosting plan (shared, cloud, or WordPress) that fits your needs. After purchase, Hostinger will send you login details for hPanel (their control panel). Log in and note your server IP and nameservers (usually like ns1.hostinger.com).
  5. Upload your website files to Hostinger. In hPanel, go to “File Manager” and navigate to public_html. Upload the ZIP file from step 1, extract it, and ensure all files are in the correct location. Alternatively, use FTP with the credentials from Hostinger.
  6. Create a database on Hostinger. In hPanel, go to “Databases” → “MySQL Databases”. Create a new database, a user, and assign the user to the database with all privileges. Write down the database name, username, and password.
  7. Import your database. Open phpMyAdmin in Hostinger (under “Databases” → “phpMyAdmin”). Select your new database, click “Import”, choose the SQL file from step 2, and run it. Check for errors—if any, review the file for syntax issues.
  8. Update your website configuration. If you use WordPress, edit the wp-config.php file in the public_html directory. Update the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST (usually “localhost”) to match the new database. For other CMSs, update the config file accordingly.
  9. Test your website on Hostinger. Temporarily edit your local hosts file (on your computer) to point your domain to Hostinger's IP address, or use a temporary URL provided by Hostinger. Load the site and check pages, images, and forms. If you see errors, fix them before going live.
  10. Update your domain's nameservers. Log into your GoDaddy domain account (or wherever your domain is registered). Go to DNS settings and replace the current nameservers with the ones from Hostinger (e.g., ns1.hostinger.com and ns2.hostinger.com). Save changes.
  11. Wait for DNS propagation. DNS changes can take 24-48 hours to spread globally. During this time, some visitors may still see the old site. Keep both hosts active until propagation completes.
  12. Migrate email (if any). If you have email accounts, create the same email addresses in Hostinger's “Email” section. Use the backup from step 3 to restore emails and contacts. Update your email client's incoming/outgoing server settings to Hostinger's (e.g., mail.yourdomain.com).
  13. Cancel GoDaddy hosting. Once the site works and DNS has propagated (after 48 hours), log into GoDaddy and cancel your hosting plan to avoid renewal charges. Keep your domain registration with GoDaddy if you prefer, or transfer it to Hostinger later.

Common Mistakes

  • Skipping the backup: Forgetting to download files or database can lead to permanent data loss.
  • Not updating config files: Leaving old database credentials in wp-config.php causes connection errors.
  • Changing nameservers too early: If you switch DNS before the site is fully functional on Hostinger, visitors will see errors.
  • Forgetting email migration: Emails on GoDaddy will be lost if you cancel before backing them up.
  • Ignoring file permissions: Incorrect permissions (e.g., 777) can cause security issues; use 644 for files and 755 for directories.
  • Not testing thoroughly: Failing to check forms, plugins, or links can lead to broken functionality after migration.

Tips

  • Use Hostinger's free website migration service if you're not comfortable doing it manually—they will handle files and database for you.
  • Keep a copy of your backup on your local drive and in cloud storage (like Google Drive) for extra safety.
  • If you have a large site, use FTP with compression to speed up file transfer.
  • Before switching DNS, use a tool like whatsmydns.net to check propagation status.
  • Update your site's URLs if you changed domain or subdomain—use a search-replace tool in phpMyAdmin (but be careful).
  • Schedule the migration during low-traffic hours (e.g., late night) to minimize impact.

Troubleshooting

  • Site shows “Error connecting to database”: Check your wp-config.php (or equivalent) for correct database name, user, password, and host. Ensure the database exists and the user has privileges.
  • Images or links are broken: This often happens if your site uses absolute URLs. Use a plugin like “Better Search Replace” (WordPress) to update the domain in the database.
  • Site loads but looks unstyled: Clear your browser cache and ensure all files were uploaded correctly, especially CSS/JS files. Check file permissions.
  • Email not sending or receiving: Verify that your domain's MX records point to Hostinger's mail servers. Update your email client's server settings to mail.yourdomain.com.
  • DNS not propagating after 48 hours: Contact Hostinger support for assistance. Sometimes your registrar may have extra DNS settings that need updating.
  • Site is slow after migration: Enable caching (like LiteSpeed Cache) in Hostinger, and consider using a CDN like Cloudflare.

Frequently Asked Questions

Do I need to transfer my domain to Hostinger?

No, you can keep your domain with GoDaddy and just change nameservers. If you prefer, you can transfer the domain to Hostinger later, but it's not required for migration.

Will my website have downtime during migration?

If you follow the steps correctly—especially testing before DNS switch—downtime can be minimal (a few hours during propagation). Some visitors may see the old site until DNS updates.

Can I migrate my website for free?

Yes, Hostinger offers free migration for most plans. If you do it manually, it's also free (just your time).

How long does DNS propagation take?

Typically 24-48 hours, but it can be faster (a few hours) or slower (up to 72 hours) depending on your ISP and region.

What happens to my email if I cancel GoDaddy?

If you don't migrate email, it will be deleted. You must create new accounts on Hostinger and restore backups before canceling.

Can I migrate a WordPress site without cPanel access?

Yes, you can use plugins like UpdraftPlus or Duplicator to create a full backup and restore it on Hostinger, even without cPanel access.