By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

moving mysql backup from Version 4.1.12 to 5.0.3

P: n/a
Hi All
i dont have much experience in databases or Mysql.i have my data
in development m/c with Mysql 4.1.12, i have to move them to production
m/c with Mysql 5.0.3 .when tried it showed error with displaying

[root@hostname mysql]# mysql -u root mydatabase < backup1.sql
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'r
o
EJlХ>~zE+&T__P
5'%T?Ud$V `j 1iDl'
at line 1
[root@hostname mysql]#

was i am going wrong?
any ideas for making happen moving backup from Mysql 4.1.12 to Mysql
5.0.3 ?
Thanks,
Thiagu.M

Jan 25 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Thiagu.M wrote:
Hi All
i dont have much experience in databases or Mysql.i have my data
in development m/c with Mysql 4.1.12, i have to move them to production
m/c with Mysql 5.0.3 .when tried it showed error with displaying

[root@hostname mysql]# mysql -u root mydatabase < backup1.sql
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'r
o
EJlХ>~zE+&T__P
5'%T?Ud$V `j 1iDl'
at line 1
[root@hostname mysql]#

was i am going wrong?
any ideas for making happen moving backup from Mysql 4.1.12 to Mysql
5.0.3 ?
Thanks,
Thiagu.M


What is the first line in your backup1.sql file? As the 1064 error is a
parse error there might be some strange data there...

I'm not sure but I tought it was not neccesarry to specify the database
name as this should be specified in the dump file.

Does your root user have a password, did you specify it either by
command line or when prompted using the -p option?

Jonathan
Jan 25 '06 #2

P: n/a

Actually the sql backup was created by TIkiwiki using the create
backup option.
The contents were in encrypted format.so i cant understand whats in it.
Then there is no root password for the database.

Thanks for your Reply.

Thiagu.M

Jan 27 '06 #3

P: n/a
Hi All,
i ended with my question.it seems the sql backup created by
Tikiwiki is not compatible.When i used usual mysqldump command to take
backup ,the restoration went fine without any problem.

by
Thiagu.M

Jan 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.