Transfer Your Wordpress Blog.
Guide on how to move your database files, expecially wordpress database.
Hostnet Systems Team are 24 x 7 always available to help our customers that wants to move their website databse from one host to us
How to Transfer Your Wordpress Blog From One Host to Another Host
This article gives instructions to help you migrate your WordPress site from another host to Hostnet. These are provided for informational purposes only, and HostGator live support agents are not able to troubleshoot migration issues, including those involving custom coding and scripting errors.
However, Hostnet Systems has a dedicated team of Migration Administrators trained to transfer any content to your Hostnet Systems server. To request a transfer (including a quote for the service if any is required) please contact us using the contact form. New or upgrading Hostnet customers may review the article below to see if they can request for a free content transfer:
- What qualifies me for a free transfer?
Step 1: Backup Your WordPress Database Using phpMyAdmin
Before transferring your WordPress blog, it is recommended that you make a backup of your database using phpMyAdmin. Once you have successfully logged into phpMyAdmin:
- Click on the name of the database which contains your WordPress blog.
- Click Export in the top navigation menu.
- Select the Quick option listed under the Export Method section.
- Leave the selection in the format section as SQL .
- Click Go.
- Once completed, there will be a prompt to save the file. Simply click on Save as File; this will download a file named wordpress.sql to your desktop.
You have now successfully backed up your database.
Step 2: Download/Upload All WordPress Files Using FTP
You will need to download ALL your files from your old host and upload them to your new host. This includes files from your themes folder and plugins folder. Make sure you also download any folders which were referenced outside of your blog's folder.
Filezilla is the recommended FTP client. By default, Filezilla does not display the .htaccess file, for security reasons.
Step 3: Create a New WordPress Database and Edit wp-config.php
Create a New Database
To create a new MySQL database:
- From your control panel, click the MySQL Databases icon.
- Create a new database with a name appropriate for your blog.
- Create a database username and password.
- Assign the new user to the new database and grant All Privileges.
For additional help creating a MySQL database, please see:
- How Do I Create a MySQL Database, a User, and Then Delete if Needed?
Editing the wp-config.php File
After creating a new database, you will need to edit the wp-config.php file, which is the WordPress configuration file. This specific configuration file reads directly from a database of your choosing.
To update the WordPress configuration file:
- From your control panel, click the File Manager icon.
- Navigate to the document root for the domain for which you are updating the WordPress.
- Locate the file named wp-config (its normally in the group of files near the bottom).
- Click to open the file, and locate the following lines so that they can be updated with the correct information:
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
- If you did not edit the file on the server via the File Manager with your new database settings, upload it to the root of your blog folder.
The configuration file is now set up with the new database; however, it does not contain any database tables. In order to correct this, you will need to import the information into the database.
Step 4: Importing WordPress to the New Database
You can use either phpMyAdmin or BigDump to import your database. BigDump is the preferred option if you have a large database (10mbs or more). There is a step-by-step guide on how to use BigDump on its website.
Once you have logged into phpMyAdmin:
- Click the name of the Database to which you wish to import the information.
- Click the Import tab at the top of the page.
- In the File to Import section, select the SQL based file from your computer that you wish to import.
- Use Partial Import if you intend to skip a set number of code rows.
- TheFormat and Format Specific Options sections can be left to their default values.
- Click Go to initiate the import.
Note: Importing via phpMyAdmin is less strenuous on the browser compared to the SQL option (BigDump) since the query may take a long time and can sometimes crash your browser.