Transfer WordPress to another host

Source: Internet
Author: User
Tags mysql host

The code to do the project is two people, I want to transfer another small partner to my own Linux system (mainly Linux under a blank, from scratch too wasted time)

This process can also be used to analogy from the local to the server process (may be slightly different, it will be added when the online)

Ways to transfer WordPress databases and files

(Take Win->ubuntu as an example, Win->win also tested no problem)

1. First make sure that the Linux environment is normal and the phpMyAdmin version is normal. After filtering, the 1.8 version of the database is the most stable (albeit slightly lower version).

Here are two options:

If your Linux is already installed with WordPress:

① first import the required plugins and themes, or then copy the backup wp-content files.

② Copy the Uploads folder to the/opt/lampp/htdocs/wordpress/wp-content folder (note permissions)

If you don't have WordPress under Linux:

Copy the entire WordPress folder locally to/opt/lampp/htdocs and add 777 permissions to it, and also remember to modify the Wp-config file (see last document)

2. Go to the phpMyAdmin database and delete the previous database associated with WP (if you do not have to do this), you will be having problems importing the database later.

3. Create a new library in phpMyAdmin, note that the library name must be consistent with the original computer or there will be a database link error, encoding mode select Utf8_general_ci;

4. Open the SQL file you want to import, add a line to the top of use XX; note that xx corresponds to the name of the database you are about to import.

5. In phpMyAdmin, select Import to select the SQL file you just modified to import.

Import Successful!

6. Modify the/opt/lampp/htdocs/wordpress/wp-config.php file to adjust the parameters and the same as the native settings, so that the database will be connected

If it is uploaded to the server also need to modify the MySQL host and so on.

7. Open the browser access localhost/wordpress is OK

Transfer WordPress to another host

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.