Best practice migrating mysql 4.1.x -> 5.0.x with mixed innodb myisamtables

Best practice migrating mysql 4.1.x -> 5.0.x with mixed innodb myisamtables

am 05.01.2011 15:07:30 von goetz.reinicke

--------------ms030603080105070205080101
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Hey,

happy new year and I do have a question what might be the best way to
migrate some different databases to a new central server.

The question came up as I wanted to put our web CMS database on our
newer master/slave mysql installation.

We run red hat el 4 and 5 right now, so the source db is mysql 4.1.22
and the target is 5.0.77.

I did a mysqldump (--create-options --default-character-set=3Dutf8 -K -e
--opt -q) on the source server and imported that dump on the new system,
but all innodb tabels are converted to myisam.

In the last time I focused on other topics than mysql, so may be
somewone can explain to me or give me a link to some compressed doku on
what happend and why?!

The other question is, what might be the best way to migrate the 'old'
database to a/the new system? This might be importand to, when switching
to myslq > 5.0

Dose the my.cnf options for innodb have to be identically?

Thanks a lot for any hint or suggestion!


Best regards . Götz
--=20
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 420
Fax +49 7141 969 55 420
E-Mail goetz.reinicke@filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016
Vorsitzende des Aufsichtsrats:
Prof. Dr. Claudia Hübner

Geschäftsführer:
Prof. Thomas Schadt


--------------ms030603080105070205080101
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIVNTCC
BCEwggMJoAMCAQICAgDHMA0GCSqGSIb3DQEBBQUAMHExCzAJBgNVBAYTAkRF MRwwGgYDVQQK
ExNEZXV0c2NoZSBUZWxla29tIEFHMR8wHQYDVQQLExZULVRlbGVTZWMgVHJ1 c3QgQ2VudGVy
MSMwIQYDVQQDExpE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