Migrate Your Website
If the website you build doesn't use MySQL databases, migrating your website is pretty easy. All you need to do is upload all the files into the
htdocs folder using an FTP client or the online file manager.
If your website is based on PHP, be sure to edit any configurations where domains names, etc. are specified and edit them with the new values as required.
If your website uses MySQL databases, you should first migrate the database contents over to free hosting servers and then update the connection credentials, else you will be popped up with a million errors.
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
Exporttab. Choose Save as file and select
gzipped. Download of your database backup should start afterward.
Create a database on your PleasantFree hosting 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.
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
Importtab, browse to the backup file of your database (like
dbname.sql.gz) 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.
Updating configuration files. Now, when the database is restored, you will need to open the configuration file (WordPress will have a
wp-config.phpfile) 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
localhostas the MySQL hostname, the right value should look like