How to migrate your website to InfinityFree

If your website doesn’t use MySQL databases, moving your site is very easy. Simply upload all your files to the ‘htdocs’ folder on your hosting account with FTP or a file manager. If you have a PHP based website, check if it has any configuration files where a domain name or file path needs to be set. Update these values as required. If your website is using MySQL databases, you need to move the database contents as well and update the configuration of your website to use the database:

  1. Backup the database on the old host. 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.

  2. Create the database on your InfinityFree account. 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 there. Pay close attention to the database name and hostname, as you’ll 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.

  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. The database hostname, database name and database username can be found in your control panel. The database password can be found in the client area. Note: we do not use “localhost” as the MySQL hostname, the right value should look like “”.


A post was split to a new topic: Database Issue