Unix Technical Forum

how to migrate databases from 3.23 to 5

This is a discussion on how to migrate databases from 3.23 to 5 within the MySQL forums, part of the Database Server Software category; --> How do I migrate my databases from currently 3.23 to a new server running 5?...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:58 AM
nobody
 
Posts: n/a
Default how to migrate databases from 3.23 to 5

How do I migrate my databases from currently 3.23 to a new server running 5?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:58 AM
lark
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

== Quote from nobody (nobody@nobody.com)'s article
> How do I migrate my databases from currently 3.23 to a new server running 5?


use mysqldump to get a dump of all your databases and then use the mysql command
prompt to import them to version 5.
--
POST BY: lark with PHP News Reader
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:58 AM
nobody
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

I tried that but gave me an error

ERROR 1064 (42000) at line 67: 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 'trigger int(5) default NULL,
UNIQUE KEY usename (username)
) TYPE=MyISAM' at line 93



Are there some issues here?

"lark" <hamzee@sbcglobal.net> wrote in message
news:U2z9i.16285$C96.14600@newssvr23.news.prodigy. net...
> == Quote from nobody (nobody@nobody.com)'s article
>> How do I migrate my databases from currently 3.23 to a new server running
>> 5?

>
> use mysqldump to get a dump of all your databases and then use the mysql
> command
> prompt to import them to version 5.
> --
> POST BY: lark with PHP News Reader



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 10:58 AM
lark
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

== Quote from nobody (nobody@nobody.com)'s article
> I tried that but gave me an error
> ERROR 1064 (42000) at line 67: 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 'trigger int(5) default NULL,
> UNIQUE KEY usename (username)
> ) TYPE=MyISAM' at line 93
> Are there some issues here?
> "lark" <hamzee@sbcglobal.net> wrote in message
> news:U2z9i.16285$C96.14600@newssvr23.news.prodigy. net...
> > == Quote from nobody (nobody@nobody.com)'s article
> >> How do I migrate my databases from currently 3.23 to a new server running
> >> 5?

> >
> > use mysqldump to get a dump of all your databases and then use the mysql
> > command
> > prompt to import them to version 5.
> > --
> > POST BY: lark with PHP News Reader




At what stage did you get this error: dumping or importing. Also, would you post
the dump file?
--
POST BY: lark with PHP News Reader
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 10:58 AM
Good Man
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

"nobody" <nobody@nobody.com> wrote in
news:f44em4$h4a$1@news.Stanford.EDU:

> How do I migrate my databases from currently 3.23 to a new server
> running 5?


http://dev.mysql.com/doc/refman/5.0/en/upgrade.html

Of particular note to you:

**

As a general rule, we recommend that when upgrading from one release series
to another, you should go to the next series rather than skipping a series.
For example, if you currently are running MySQL 3.23 and wish to upgrade to
a newer series, upgrade to MySQL 4.0 rather than to 4.1 or 5.0.

**

so.... you should visit
http://dev.mysql.com/doc/refman/4.1/...from-3-23.html

And upgrade to 4.0 first.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 10:58 AM
nobody
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

when I try to import it

mysql < databasegump.sql

how do I port a dumpfile? Its huge.
"lark" <hamzee@sbcglobal.net> wrote in message
news:9HC9i.11232$4Y.5981@newssvr19.news.prodigy.ne t...
> == Quote from nobody (nobody@nobody.com)'s article
>> I tried that but gave me an error
>> ERROR 1064 (42000) at line 67: 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 'trigger int(5) default NULL,
>> UNIQUE KEY usename (username)
>> ) TYPE=MyISAM' at line 93
>> Are there some issues here?
>> "lark" <hamzee@sbcglobal.net> wrote in message
>> news:U2z9i.16285$C96.14600@newssvr23.news.prodigy. net...
>> > == Quote from nobody (nobody@nobody.com)'s article
>> >> How do I migrate my databases from currently 3.23 to a new server
>> >> running
>> >> 5?
>> >
>> > use mysqldump to get a dump of all your databases and then use the
>> > mysql
>> > command
>> > prompt to import them to version 5.
>> > --
>> > POST BY: lark with PHP News Reader

>
>
>
> At what stage did you get this error: dumping or importing. Also, would
> you post
> the dump file?
> --
> POST BY: lark with PHP News Reader



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 10:58 AM
Jiri Matejka
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

On Jun 5, 9:48 pm, "nobody" <nob...@nobody.com> wrote:
> How do I migrate my databases from currently 3.23 to a new server running 5?



You can use mysqldump to transfer the data directly from 3.23 to 5.0,
eg:

/usr/bin/mysqldump --verbose --skip-opt --add-drop-table --
compatible=mysql323 --disable-keys --quick --host=SOURCE_HOST -u
USERNAME --password=PASSWORD SOURCE_DATABASE_NAME | mysql --
host=TARGET_HOST -u USERNAME --password=PASSWORD TARGET_DATABASE_NAME

Use --compatible=mysql323 switch to force mysqldump to use this
version format. You have to run mysqldump from the 5.x version.

Jiri Matejka

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2008, 10:59 AM
nobody
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

would I be able to just copy the databse files from the 323 server to the
5.0 server?


"Jiri Matejka" <matejka@stemmark.cz> wrote in message
news:1181201939.736485.303250@g4g2000hsf.googlegro ups.com...
> On Jun 5, 9:48 pm, "nobody" <nob...@nobody.com> wrote:
>> How do I migrate my databases from currently 3.23 to a new server running
>> 5?

>
>
> You can use mysqldump to transfer the data directly from 3.23 to 5.0,
> eg:
>
> /usr/bin/mysqldump --verbose --skip-opt --add-drop-table --
> compatible=mysql323 --disable-keys --quick --host=SOURCE_HOST -u
> USERNAME --password=PASSWORD SOURCE_DATABASE_NAME | mysql --
> host=TARGET_HOST -u USERNAME --password=PASSWORD TARGET_DATABASE_NAME
>
> Use --compatible=mysql323 switch to force mysqldump to use this
> version format. You have to run mysqldump from the 5.x version.
>
> Jiri Matejka
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-28-2008, 10:59 AM
nobody
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

Is there a way to have this command create the destination database as well?
I dont have any databases on the target server just the defaults.
"Jiri Matejka" <matejka@stemmark.cz> wrote in message
news:1181201939.736485.303250@g4g2000hsf.googlegro ups.com...
> On Jun 5, 9:48 pm, "nobody" <nob...@nobody.com> wrote:
>> How do I migrate my databases from currently 3.23 to a new server running
>> 5?

>
>
> You can use mysqldump to transfer the data directly from 3.23 to 5.0,
> eg:
>
> /usr/bin/mysqldump --verbose --skip-opt --add-drop-table --
> compatible=mysql323 --disable-keys --quick --host=SOURCE_HOST -u
> USERNAME --password=PASSWORD SOURCE_DATABASE_NAME | mysql --
> host=TARGET_HOST -u USERNAME --password=PASSWORD TARGET_DATABASE_NAME
>
> Use --compatible=mysql323 switch to force mysqldump to use this
> version format. You have to run mysqldump from the 5.x version.
>
> Jiri Matejka
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-28-2008, 10:59 AM
nobody
 
Posts: n/a
Default Re: how to migrate databases from 3.23 to 5

I canot connect to the remote mysql server

mysqldump: Got error: 2013: Lost connection to MySQL server during query
when trying to connect

"Jiri Matejka" <matejka@stemmark.cz> wrote in message
news:1181201939.736485.303250@g4g2000hsf.googlegro ups.com...
> On Jun 5, 9:48 pm, "nobody" <nob...@nobody.com> wrote:
>> How do I migrate my databases from currently 3.23 to a new server running
>> 5?

>
>
> You can use mysqldump to transfer the data directly from 3.23 to 5.0,
> eg:
>
> /usr/bin/mysqldump --verbose --skip-opt --add-drop-table --
> compatible=mysql323 --disable-keys --quick --host=SOURCE_HOST -u
> USERNAME --password=PASSWORD SOURCE_DATABASE_NAME | mysql --
> host=TARGET_HOST -u USERNAME --password=PASSWORD TARGET_DATABASE_NAME
>
> Use --compatible=mysql323 switch to force mysqldump to use this
> version format. You have to run mysqldump from the 5.x version.
>
> Jiri Matejka
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:20 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com