MySQL 5.0.19 > MySQL 4.1.18 How to downgrade?

Hello
I have update MySQL a few days ago in a linux server (CentOS) to MySQL 5.0.19 but since that update im having a lot of compatibility problems with some scripts, so i will have to downgrade back to MySQL 4.1.18, i have been searching in the web and made a full server databases dump using the command mysqldump --all-databases --compatible=mysql40 -u[admin_user] -p[password] -hlocalhost > full_backup.sql
But now im "lost" in how to restore de backup back to the server after the MySQL 4.1.18 installation, could you please provide me the steps to do it?
Thanks
mrzsilvaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kamichieCommented:
The full dump you made you just need to excute the sql file in Mysql4.1, it should be as simple as typying "mysql ./full_backup.sql".
0
mrzsilvaAuthor Commented:
okay, gona try it tonight.
Thanks
0
mrzsilvaAuthor Commented:
mysql ./full_backup.sql
ERROR 1102 (42000): Incorrect database name './full_backup.sql'

What could be the problem?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

kamichieCommented:
My bad, I got confused there for a second, it should be "mysql < full_backup.sql", of course you have to enter the proper syntax for username and password I think, like this "mysql -u USER -p DBNAME < full_dump.sql". That should work.
0
mrzsilvaAuthor Commented:
mysql -u USER -p DBNAME < full_dump.sql the DBNAME aplies for full restore?
0
kamichieCommented:
No I guess you don't need the DBNAME just a user with proper access.
0
mrzsilvaAuthor Commented:
ok so what i need to do is run the comand "mysql -u[username] -p[password] < full_dump.sql" Right?
0
kamichieCommented:
yes, that should do it.
0
mrzsilvaAuthor Commented:
After making a dump of the mysql5 databases do i need to make the "drop" of the databases content or in the import process will be that data droped?
Thanks
0
kamichieCommented:
You have to do the import first then drop the remaining tables you don't want. If you try to drop the tables before you import you will lose all the usernames and permiisions associated with the mysql service. This will make it impossible to do a import. If you still have the MySQL 5 databses I would suggest dumping each databsse seperately then re adding them, this will allow you to transition with much less effort.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.