WordPress: Transferring A WordPress Site Print

  • 24

Do you need to transfer your WordPress site from your old host to Nixihost? This guide will show you how.

Note: Be sure that the old WordPress install and the new one are the same version. If the versions do not match, the databases may not properly sync.



A. Back Up WordPress With phpMyAdmin

  1. Log in to phpMyAdmin.
  2. Select the WordPress database from the list.
  3. Select "Export" from the menu.
  4. Select "Quick", underneath "Export Method".
  5. Click "Go".
  6. When the backup is completed, you will be able to save the file. Click "Save As File" and you will download "wordpress.sql" to your desktop.


B. Download and Upload All Files

  • Using your preferred FTP client, download the complete file structure of your old WordPress install - including the themes and plugins folders, or any folders not part of the default install but referred to in posts or pages.


C. Create A New Database & Edit wp-config.php

Create The New Database

  1. In cPanel, click "MySQL Databases".
  2. Create a new database.
  3. Create a user and password, and assign them to the new database.
  4. Grant the user "All Privileges".

Edit wp-config.php

  1. In cPanel, select the "File Manager" icon.
  2. Open the document root for the domain you're transferring to.
  3. Open the "wp-config.php" file. Edit these lines to match your database name, user name, password, and hostname.
    /** The name of the database for WordPress */
    define('DB_NAME', 'cpuser_dbname');

    /** MySQL database username */
    define('DB_USER', 'cpuser_uname');

    /** MySQL database password */
    define('DB_PASSWORD', '******');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

Your WordPress install now has an empty database.



D. Import WordPress

If your database if over 10mb, it may be best for you to use BigDump to import it. If not, you can do it via phpMyAdmin:

  1. When logged in to phpMyAdmin, select the blank database.
  2. Click "Import".
  3. Select the SQL backup file that you save to your computer in Part A.
  4. If you intend to skip a set number of code rows, you can use "Partial Import".
  5. Leave "Format" and "Format Specific Options" sections default.
  6. Click "Go".

 



Was this answer helpful?

« Back