If your website doesn't use MySQL databases, moving your site is very easy. Simply upload all your files to the 'public_html' folder on our server. If you have a PHP based website, check if it has any configuration files where domain name or path to the files can be set. Update these values if needed. If your website is using MySQL databases, you need to move the database here and update configuration files of your scripts accordingly:
1. Backup database on the old server. If your current provider has a MySQL backup tool - use it. Usually, you can log in to phpMyAdmin, select your database and click on 'Export' tab. Choose Save as file and select 'gzipped'. Download of your database backup should start afterward. (A detailed guide can be found here: https://www.hostinger.com/tutorials/mysql/how-to-export-mysql-database-using-phpmyadmin)
2. Create the database on our server. Before you can restore a database backup, you will need to create a database on our system. Enter your website's Control Panel and click on the MySQL Databases. You can create a new database and user there. Write down MySQL details as you will need them later.
3. Importing database data to our server. Once the database is created, enter our phpMyAdmin (the icon for the tool is located in Control Panel). Once inside, click on 'Import' tab, browse to the backup file of your database (yourdatabase.sql.gz for example) and click Go. Database restoration procedure will begin. Please be patient, as it can take quite a lot of time to complete if your backup size is large. (A detailed guide can be found here: https://www.hostinger.com/tutorials/mysql/restoring-mysql-database-from-backup-phpmyadmin)
4. Updating configuration files. Now, when the database is restored, you will need to open the configuration file (For example, WordPress will have a wp-config.php file) of your PHP script and update database host, database name, database username and database password values. Use the values that you've written down when you created the new database. Note: we do not use "localhost" as MySQL hostname, our MySQL host is "mysql.hostinger.com"
- Some scripts like WordPress have multiple methods available for migrating your website, such as Plugins, that save you the hassle and time when transferring multiple websites. Make sure to check out our migration guide, meant specifically for WordPress: https://www.hostinger.com/tutorials/wordpress/how-to-migrate-wordpress
- A Drupal migration guide is also available here: https://www.hostinger.com/tutorials/drupal/how-to-migrate-drupal