MySQL – How to Copy Schemas to a New Version Instance

MySQLupgrade

I have a few schemas, Which are included in mysql 4 instance, And i want to move them to other mysql instance which running under a newer version – mysql 5.6. This instance is already including some schemas.
I want to move these schemas from the old version to the new version, And so to get rid of the old mysql instance.

What is the best practice to do so? Do i need to upgrade each version (4–>5.0, 5.0–>5.1, etc), And only after the schemas will be updated to version 5.6 i will be able to move them to the new instance?

I don't have any experience with mysql upgrading, So any tip would be great.

Best Answer

You should be able to just mysqldump the individual databases and load them straight into a MySQL instance running on the latest version. I have recommended this before:

When doing this, please do not move the grants by dumping the mysql schema. The number of columns have changes between versions :

Try to extracts the grants with pt-show-grants or emulate it as suggested