Import data from MySQL 5.0 into MySQL 3.23

Source: Internet
Author: User
Tags comments

Recently, you need to export the database under Mysql5.0 and then import it into the MySQL 3.23 database.

I use the following methods:

$ 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

Always unsuccessful, such or such a mistake. Mysqldump parameters have been changed, not found suitable.

After several setbacks, the problem solved:

Oh, forgot to specify the Character-set. Because both sides have to 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

Related Article

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.