You are on page 1of 2

How to migrate your WordPress site to HostPapa

1. Open phpMyAdmin from your site’s control panel (cPanel or other).


2. Select the WordPress database.

3. Click the Export button at the top of the page.


4. On the Export page, select the Quick option and set the format to SQL.

5. Click the Go button.


6. When prompted, save the file to your local computer.
7. Use an FTP client to download the entire WordPress installation
directory to your local computer. Make sure you set your FTP client to
view hidden files, as you also need to download the .htaccess file
associated with your WordPress directory.
8. Once you’ve downloaded both your database backup and your
WordPress installation directory, go to your HostPapa account and
create a new database for your WordPress installation.
9. On your local computer, locate the folder where you stored the files
from your old WordPress installation and edit the wp-config.php file as
follows:
a. Locate the line containing define('DB_NAME', 'db_name'); and
change the 'db_name' to the name of the database you created in
step 8 above.
b. Locate the line containing define('DB_USER', 'db_user'); (just
below the DB_NAME line) and change 'db_user' to the username
for the database you created in step 8 above.
c. Locate the line containing define('DB_PASSWORD',
'db_pass'); (just below the DB_USER line) and change 'db_pass' to
the password you set for the database you created in step 8
above.
d. Save and close the wp-config.php file.
10.Open up phpMyAdmin in your new HostPapa account and import the
database backup you created earlier:
a. Go to the Import tab.
b. Click the Choose File button in the File to Import section of the
Import tab and select the backup SQL file.
c. Uncheck the Partial Import checkbox.
d. Set the format to SQL.
e. Click Go. Your database file imports.
11.Use your FTP client to upload the WordPress files from your computer to
the public_html directory on your HostPapa site. If your old WordPress
install was in a subdirectory of your former site, create that directory
and upload your files there.
12.Follow the Edit your wp-config.php file instructions, Update SiteURL
and home options, Update URLs that refer to the old site, and Change
your domain DNS settings sections below.

You might also like