PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Upgrading Data From 4.x to 5.x On Windows
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Upgrading Data From 4.x to 5.x On Windows

Réponse
 
LinkBack Outils de la discussion
Vieux 07/04/2008, 05h24   #1
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 07/04/2008, 14h26   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
==================

  Réponse avec citation
Vieux 10/04/2008, 04h52   #3
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 10/04/2008, 11h37   #4
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
==================

  Réponse avec citation
Vieux 10/04/2008, 14h23   #5
Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.


  Réponse avec citation
Vieux 10/04/2008, 22h38   #6
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
==================

  Réponse avec citation
Vieux 11/04/2008, 04h13   #7
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
Vieux 11/04/2008, 14h38   #8
Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h11.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,27255 seconds with 16 queries