Upgrading Data From 4.x to 5.x On Windows

This is a discussion on Upgrading Data From 4.x to 5.x On Windows within the MySQL Database forums, part of the Database Forums category; I just upgraded from 4.1.22 to 5.1 on my Windows dev machine. Everything installed fine with the ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008
Steve
 
Posts: n/a
Default Upgrading Data From 4.x to 5.x On Windows

I just upgraded from 4.1.22 to 5.1 on my Windows dev machine. Everything installed fine with the new version, and I can connect
without a problem. The question I have is about my data. Since I'm on Windoze and using the .msi installer, the new version -
and the data - is installed in a different path:

old - C:\Program Files\MySQL\MySQL Server 4.1\data
new - C:\Program Files\MySQL\MySQL Server 5.1\data

There seems to be no automatic way to get the data from 4.1 and put it in 5.1. How can I do that? I looked in the manual, and I
don't see anything that addresses this. Can I just copy the directories from the 4.1 \data directory, or is there a tool to use
to do this?

Thanks.

Steve
Reply With Quote
  #2 (permalink)  
Old 04-07-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows

Steve wrote:
> I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
> Everything installed fine with the new version, and I can connect
> without a problem. The question I have is about my data. Since I'm on
> Windoze and using the .msi installer, the new version - and the data -
> is installed in a different path:
>
> old - C:\Program Files\MySQL\MySQL Server 4.1\data
> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>
> There seems to be no automatic way to get the data from 4.1 and put it
> in 5.1. How can I do that? I looked in the manual, and I don't see
> anything that addresses this. Can I just copy the directories from the
> 4.1 \data directory, or is there a tool to use to do this?
>
> Thanks.
>
> Steve
>


Why not just change the path to the data files? It's just an entry in
the my.ini file.

Be sure to stop/start MySQL. And it would be a good idea to back up the
databases using 4.1 before converting to 5.1.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #3 (permalink)  
Old 04-10-2008
Steve
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows



Jerry Stuckle wrote:
> Steve wrote:
>> I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
>> Everything installed fine with the new version, and I can connect
>> without a problem. The question I have is about my data. Since I'm
>> on Windoze and using the .msi installer, the new version - and the
>> data - is installed in a different path:
>>
>> old - C:\Program Files\MySQL\MySQL Server 4.1\data
>> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>>
>> There seems to be no automatic way to get the data from 4.1 and put it
>> in 5.1. How can I do that? I looked in the manual, and I don't see
>> anything that addresses this. Can I just copy the directories from
>> the 4.1 \data directory, or is there a tool to use to do this?
>>
>> Thanks.
>>
>> Steve
>>

>
> Why not just change the path to the data files? It's just an entry in
> the my.ini file.
>
> Be sure to stop/start MySQL. And it would be a good idea to back up the
> databases using 4.1 before converting to 5.1.
>

Well, it would be preferable to have the data under the \MySQL Server 5.1\data folder instead of having to point back to the 4.1
directory and leave that whole directory there.

I'm amazed there isn't some sort of import or upgrade utility for a case like this.

Steve
Reply With Quote
  #4 (permalink)  
Old 04-10-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows

Steve wrote:
>
>
> Jerry Stuckle wrote:
>> Steve wrote:
>>> I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
>>> Everything installed fine with the new version, and I can connect
>>> without a problem. The question I have is about my data. Since I'm
>>> on Windoze and using the .msi installer, the new version - and the
>>> data - is installed in a different path:
>>>
>>> old - C:\Program Files\MySQL\MySQL Server 4.1\data
>>> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>>>
>>> There seems to be no automatic way to get the data from 4.1 and put
>>> it in 5.1. How can I do that? I looked in the manual, and I don't
>>> see anything that addresses this. Can I just copy the directories
>>> from the 4.1 \data directory, or is there a tool to use to do this?
>>>
>>> Thanks.
>>>
>>> Steve
>>>

>>
>> Why not just change the path to the data files? It's just an entry in
>> the my.ini file.
>>
>> Be sure to stop/start MySQL. And it would be a good idea to back up
>> the databases using 4.1 before converting to 5.1.
>>

> Well, it would be preferable to have the data under the \MySQL Server
> 5.1\data folder instead of having to point back to the 4.1 directory and
> leave that whole directory there.
>
> I'm amazed there isn't some sort of import or upgrade utility for a case
> like this.
>
> Steve
>


OK, if that's what you want. Personally, I put all of my data on a
completely different drive, and the directory doesn't have a release
associated with it.

But then I find it's always better to keep data and programs on separate
drives.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #5 (permalink)  
Old 04-10-2008
Richard
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows


"Steve" <racquetballer@hotmail.com> wrote in message
news:ReGdnaTKBLubP2TanZ2dnUVZ_oCvnZ2d@comcast.com. ..
>I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
>Everything installed fine with the new version, and I can connect
>without a problem. The question I have is about my data. Since I'm
>on Windoze and using the .msi installer, the new version - and the
>data - is installed in a different path:
>
> old - C:\Program Files\MySQL\MySQL Server 4.1\data
> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>
> There seems to be no automatic way to get the data from 4.1 and put
> it in 5.1. How can I do that? I looked in the manual, and I don't
> see anything that addresses this. Can I just copy the directories
> from the 4.1 \data directory, or is there a tool to use to do this?
>
> Thanks.
>
> Steve


I had some problems when going from 4 to 5.
These included passwords not working anymore, and differences in NULL
value handling.

I used a data dump / backup to get the data from the old to the new
version.

I suggest you do a parallel install and test rigorously before going
into production.

Richard.


Reply With Quote
  #6 (permalink)  
Old 04-10-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows

Richard wrote:
> "Steve" <racquetballer@hotmail.com> wrote in message
> news:ReGdnaTKBLubP2TanZ2dnUVZ_oCvnZ2d@comcast.com. ..
>> I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
>> Everything installed fine with the new version, and I can connect
>> without a problem. The question I have is about my data. Since I'm
>> on Windoze and using the .msi installer, the new version - and the
>> data - is installed in a different path:
>>
>> old - C:\Program Files\MySQL\MySQL Server 4.1\data
>> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>>
>> There seems to be no automatic way to get the data from 4.1 and put
>> it in 5.1. How can I do that? I looked in the manual, and I don't
>> see anything that addresses this. Can I just copy the directories
>> from the 4.1 \data directory, or is there a tool to use to do this?
>>
>> Thanks.
>>
>> Steve

>
> I had some problems when going from 4 to 5.
> These included passwords not working anymore, and differences in NULL
> value handling.
>
> I used a data dump / backup to get the data from the old to the new
> version.
>
> I suggest you do a parallel install and test rigorously before going
> into production.
>
> Richard.
>
>
>


The change in passwords was between 4.0 and 4.1. Did you read the
documentation on the changes?

I've performed several upgrades since 4.1 came out, and all of them went
smoothly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #7 (permalink)  
Old 04-11-2008
Steve
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows

>> Well, it would be preferable to have the data under the \MySQL Server
>> 5.1\data folder instead of having to point back to the 4.1 directory
>> and leave that whole directory there.
>>
>> I'm amazed there isn't some sort of import or upgrade utility for a
>> case like this.
>>
>> Steve
>>

>
> OK, if that's what you want. Personally, I put all of my data on a
> completely different drive, and the directory doesn't have a release
> associated with it.
>
> But then I find it's always better to keep data and programs on separate
> drives.
>


Point taken. However, in this case, this is just a development machine for web development, not a production server, so I'm not
too concerned about this. But I think I will try moving it to my secondary hard drive just in case.

Thanks.
Reply With Quote
  #8 (permalink)  
Old 04-11-2008
Richard
 
Posts: n/a
Default Re: Upgrading Data From 4.x to 5.x On Windows


"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:8oqdnYVlFsV_GmPanZ2dnUVZ_qXinZ2d@comcast.com. ..
> Richard wrote:
>> "Steve" <racquetballer@hotmail.com> wrote in message
>> news:ReGdnaTKBLubP2TanZ2dnUVZ_oCvnZ2d@comcast.com. ..
>>> I just upgraded from 4.1.22 to 5.1 on my Windows dev machine.
>>> Everything installed fine with the new version, and I can connect
>>> without a problem. The question I have is about my data. Since
>>> I'm on Windoze and using the .msi installer, the new version - and
>>> the data - is installed in a different path:
>>>
>>> old - C:\Program Files\MySQL\MySQL Server 4.1\data
>>> new - C:\Program Files\MySQL\MySQL Server 5.1\data
>>>
>>> There seems to be no automatic way to get the data from 4.1 and
>>> put it in 5.1. How can I do that? I looked in the manual, and I
>>> don't see anything that addresses this. Can I just copy the
>>> directories from the 4.1 \data directory, or is there a tool to
>>> use to do this?
>>>
>>> Thanks.
>>>
>>> Steve

>>
>> I had some problems when going from 4 to 5.
>> These included passwords not working anymore, and differences in
>> NULL value handling.
>>
>> I used a data dump / backup to get the data from the old to the new
>> version.
>>
>> I suggest you do a parallel install and test rigorously before
>> going into production.
>>
>> Richard.
>>
>>
>>

>
> The change in passwords was between 4.0 and 4.1. Did you read the
> documentation on the changes?


Yes.
And still I had to solve the passwords problems. :)

Richard.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0