Import data under MySQL5.0 to low version _ MySQL

Source: Internet
Author: User
Import data under MySQL5.0 to the lower version. recently, you need to export the database under Mysql5.0 and then import it to the database of mysql 3.23,

The following method is used:

$ Mysqldump-u root -- skip-comments -- compatible = mysql323 -- databases db1 db2 db3> mydump. SQL

Import on another server (mysql 3.23.58:

Mysql> source/path/mydump. SQL

It is always unsuccessful. the mysqldump parameter is also changed, and no suitable one is found.

After several twists and turns, the problem is solved:

You forgot to specify character-set because both sides must be specified.

$ Mysqldump-u root -- default-character-set = xxxx -- skip-comments -- compatible = mysql323 -- databases db1> db1. SQL

Import on another server (mysql 3.23.58:

$ Mysql-u root -- default-character-set = xxxx

Mysql> source/path/db1. SQL

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.