Bluehost Web Hosting Help
How To Migrate a WordPress Site - Import / Export WordPress Database
This article will explain how to migrate your WordPress site without using Marketplace.
- Transfer Your Files
- Export the WordPress Database
- Create a New Database
- Import into New Database
- Update the WordPress Configuration File
- Fixing your Permalinks
Transfer your Files
- Connect to your current hosting account using FTP
Note: If you are unsure how to connect using FTP please see our article Filezilla which explains how to setup Filezilla, a popular FTP program.
- Locate the directory that contains your WordPress site Files. This could be your public_html or a subfolder inside of the public_html
Note: Typically you will need all of the files and folders beginning with "wp-".
- Using your FTP client, download these files to your computer
- Now you need to upload those files to your new hosting account. You can use FTP to upload these files.
- Navigate to your public_html folder or the subfolder where you want WordPress installed
- Upload the files from your computer to this new location
Export the WordPress Database
- On your current hosting account, open the wp-config.php file. Located in this file is the name of the database that you need to export
- Most cPanel based hosting accounts should provide a copy of PHPMyAdmin to access your database. You can use this to export the database as a .sql file.
Note: If you don't have access to PHPMyAdmin, you can use a plugin to export a backup of your database
Create a New Database
You are now going to create a new database for the WordPress install.
- In your cPanel: Navigate to the Database category and click MySQL Databases
- Create a new database by typing in a name for it. This will be something like username_wp1, with 'wp1' being the name given to the database.
- Now create a user for the database. You will provide a password for the user, which is important to remember for a later step in configuring WordPress
- Once you have created the user, you will need to assign it to the database. When you do this, give the user All Privileges
Import into New Database
Now that you have a database created, you are going to Import the .sql file you downloaded into it
- In your cPanel: Navigate to the database category and click PHPMyAdmin
- Choose your newly created database, from the left hand side of the page.
- Along the top of the screen, click the Import tab
- Click the Browse button, and locate the file on your computer.
- Once you select the file, click Go to start the import.
Update your WordPress Configuration File
Now you need to make sure that your WordPress install is connected to the correct database. To do this,
- Open your File Manager and edit the wp-config.php file
- You will need to type in the new database information: database name, database user, and the password.
- Once you have updated those, click Save Changes
Fixing your Permalinks
- Log into your WordPress Dashboard, using the username and password from the copy of WordPress you brought over
- Under Settings, click Permalinks
- You don't have to make any actual changes, just click the Save Changes button.
Doing this will update all the page and post URLs. If you have custom themes or plugins/widgets with old URLs, you will have to update those manually since there are not any plugins that are able to modify those as well.
View your Site
Once you have completed these steps, view your site in your browser to make sure everything looks correct and is functioning properly.
Recommended Help Content
How To Migrate An Existing Wordpress.com Site
If you have a WordPress blog hosted on WordPress.com, you can easily export it and import it to WordPress that is installed on your hosting account with bluehost. Login to the WordPress Data
How To Migrate A WordPress Site - Website Migration
How to Migrate a self hosted copy of WordPress
Free WordPress Migration
We are offering free website migrations for qualifying WordPress websites within the first 30 days after signup. The offer includes the transfer of one WordPress website and the ability to review the site before it goes live.
Related Help Content
MySQL Export (.sql file) with PhpMyAdmin
How to export your database in phpMyAdmin..
How To Find Your WordPress Database
This article explains how to find the database in use by a WordPress site.
WordPress Install Without Automatic Database Creation
This article explains how to install WordPress when Mojo is unable to create the database automatically.
Change WordPress URL's With WordPress Tools
This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site.
Manually Changing the Domain of Your WordPress Site
How to change the name of your WordPress site without WP Tools
Migrate WordPress to Another Folder
How to move WordPress from one folder to another folder on the same server.
Import a MySQL Database using phpMyAdmin
How do I import a backup of my database (.sql file) using phpMyAdmin?
How To Login To WordPress Site - WP Admin Access
This article will explain how to login to a website created with WordPress.