Created
July 12, 2012 15:58
-
-
Save mlbright/3099015 to your computer and use it in GitHub Desktop.
script to convert a MySQL 4.0.23 dump file to be usable in 5.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| # Filters a mysql dump file to migrate from 4.0.23 to 5.x | |
| use strict; | |
| use warnings; | |
| while (<>) { | |
| s/TYPE=MyISAM/ENGINE=MyISAM/g; | |
| s/timestamp\(14\)/timestamp/g; | |
| s/TYPE=ISAM/ENGINE=MyISAM/g; | |
| print; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment