You should use phpmyadmin... it has an "export" option which lets you select which database version you want to export to.
http://www.phpmyadmin.net/
Main Topics
Browse All TopicsI have recently backed up a database which was running MySQL 4.1. I have the SQL file and I am trying to import it into MySQL 5.0.
I am using the following command line syntax to import it:
mysql -uusername -ppassword -D database path/to/sql/file.sql
This works fine and part of the file is imported and I can see the data in some of the tables. However it comes up with an error - "ERROR 1064 (42000)" - saying there is an error in the SQL syntax. Now this is a 35mb file and the error is on line 312,052 and it keeps crashing some programs I am using to read it.
So my question is... Is there a way to export the data from the MySQL 4.1 database so it will be readable by the MySQL 5.0 database? I am using phpMyAdmin with version 4.1 but I need to use command line with 5.0 to import it.
Thanks for your help,
James
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You should use phpmyadmin... it has an "export" option which lets you select which database version you want to export to.
http://www.phpmyadmin.net/
Business Accounts
Answer for Membership
by: anokun7Posted on 2007-04-24 at 08:38:37ID: 18966709
I think you should open the file using vi (or vim if you are on windows) and then go to line 312052 - or else upload the file to some place and I can d/l it and have a look inside it.