WordPress migration methods and garbled solutions

Source: Internet
Author: User
WordPress migration methods and garbled solutions some time ago, my blog ICP filing was canceled, because I was busy at ordinary times, and I was not taken care of it. Suddenly one day, the space provider showed my record filing review. I realized that I was about to move the space. I submitted a ticket to the space provider to back up the data and downloaded the data myself. today, I am just free. so I have implemented the WordPress migration method and garbled solution in a country.
Some time ago, my blog ICP filing was canceled, because I was busy at ordinary times and I didn't take care of it. Suddenly one day, the space provider showed my record filing review. I realized that I was about to move the space. I submitted a ticket to the space service provider to back up the data. I just had time to download the data, so I made a foreign space and moved my blog abroad.
The migration process is very simple and only takes three steps:
1. back up the program and database in the original space. What makes people copy and package MYsql database files directly by the space provider, not exported. SQL file, but you can only manually export the database again (here is a bit of a cup of cake, I will talk about it later)
2. bind the resolved domain name to the new space, upload the program, and decompress it to the root directory of the space. Log on to the spatial database management and import the backed up database through phpmyadmin.
3, with editpuls open the wp-config.php under the root directory, modify the database configuration information: database name, database password.
The migration is complete.
Here is a story about dog blood. after completing the above migration steps, I can open it and check that the content is full of garbled characters. I know that the encoding is wrong. it is estimated that the encoding is inconsistent during PHPMYADMIN export and import.
The phpmyadmin of the original space is of the old version, which seems to be of the 2.9 version, while the new space is of the new version. the encoding in The phpmyadmin of the original space is not sorted out before export, so garbled characters occur.
The specific operation steps are as follows: log on to phpmyadmin of the original space, log on to a [operation] button in the upper right corner, click this button to the bottom, you will see a sorting, there is a drop-down box, pull the code to the bottom, that is, utf8_unicode_ci. click execute next to it, export the database, re-import it to the database of the new space, and refresh it. the garbled characters are gone.


------ Solution --------------------
That's easy.

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.