moving mysql backup from Version 4.1.12 to 5.0.3
am 25.01.2006 14:52:40 von thiagu.m
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
EJ=C3lÐ¥>~þ¯zE+&T_=B5_P=E3
5'%T=C2?Ud$V `ò·êÈj=B2 Èç=AA1i=BDD=
=E5l'
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
50.3 ?
Thanks,
Thiagu.M
Re: moving mysql backup from Version 4.1.12 to 5.0.3
am 25.01.2006 22:05:27 von Jonathan
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
> EJÃlÐ¥>~þ¯zE+&T_µ_Pã
> 5'%TÂ?Ud$V `ò·êÈj² Èçª1i½Dål'
> 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
Re: moving mysql backup from Version 4.1.12 to 5.0.3
am 28.01.2006 13:20:46 von thiagu.m
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