[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


convert mysql dump from 4.1 to 3.23

Posted on 2006-04-20
Medium Priority
Last Modified: 2012-06-27
I have a database dump made on server 4.1, but I need to load it to 3.23.
How to do it? How to convert it?
If I try just load it it fail on line
) ENGINE=MyISAM DEFAULT CHARSET=latin2; --from create table

but there are possibly more failing cases.
Question by:ravenpl
  • 2

Expert Comment

ID: 16495958

There is no CHARSET support in 3.x, IIRC. Remove the phrase "DEFAULT CHARSET=latin2" and see whether the query is successful or not.
LVL 14

Accepted Solution

psadac earned 750 total points
ID: 16497963
use the "compatible" option of mysqldump : mysqldump --compatible=mysql323
LVL 43

Author Comment

ID: 16498124
psadac: that's great. Points assured.
But, do You know what about charsets conversions? 3.23 has no idea about utf8 (or I'm wrong?)
LVL 43

Author Comment

ID: 16505470
Found it by myself: --default-character-set=latin2

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question