I have mysql dump file named booster.dump
. It was export from 4.0.27-standard
mysql server. Now I want to convert this database to mysql 5.1.73-cll
. How can I do it? I search about this topic in internet and I have got a lots of solution but no one work for me.
1 Answer
You can do the following on a Linux system:
sed 's/TYPE=/ENGINE=/g' booster.dump > booster_sane.dump
and afterwards import the booster_sane.dump. If you don´t care about your original file you can also make the changes inplace before importing: sed -i 's/TYPE=/ENGINE=/g'
(or specify a suffix to -i
option to make a backup on the fly).
The reason for your error is explained in the comments to your question.
TYPE=
toENGINE=
TYPE
was deprecated only in 5.1 and removed in 5.5 It should only give you a warning, not error.