469,270 Members | 1,131 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

moving mysql backup from Version 4.1.12 to 5.0.3

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
3 2039
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

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
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.

Similar topics

3 posts views Thread by James | last post: by
4 posts views Thread by Neil | last post: by
4 posts views Thread by news | last post: by
4 posts views Thread by wzhao6898 | last post: by
reply views Thread by newman | last post: by
2 posts views Thread by fuzzybr80 | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.