Using phpMyAdmin to migrate WordPress data from MySQL4 to MySQL5

Source: Internet
Author: User
Tags character set mysql database phpmyadmin

By comparing the different points of the WordPress data with phpMyAdmin from MySQL and MySQL5 to solve the problem in migration, this solution is not only used in migrating WordPress data, but is actually generic.

Using phpMyAdmin (Mysql&phpmyadmin installed in win) in MySQL4 Select database "Export" The required WordPress data, such as the figure Select "Save as File" so you get a suffix for. SQL export file is saved on the local machine.

Open MySQL5 with phpMyAdmin, as shown by default to create a new database.

Import the required data in the "import", such as the figure, the successful configuration of the database link file, that is, you can browse.

Note that the file character set must be selected Latin1, which is the default when the MySQL database is created.

The maximum size of the import file in the above image is 2048k, which is received php.ini file control and can be changed by modifying Upload_max_filesize,memory_limit and Post_max_size.

But this is not a problem to use, but if you use phpMyAdmin to look at the database table, you will find that the Chinese are all garbled, that is, the above file is the character set is a latin1 problem.

In fact, when you export data, if you do not select "Save As File", you will export a section of SQL statements, if you put this statement directly in the phpMyAdmin execution, you will appear as a figure error:

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.