SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upgrade MySQL from version 5.0.22 to 5.1.44.

    I am preparing to upgrade MySQL from version 5.0.22 to version 5.1.44 on my local PC.

    Cur ver: mysql Ver 14.12 Distrib 5.0.22, for Win32 (ia32)
    New ver: mysql Ver 14.14 Distrib 5.1.44, for Win32 (ia32)

    What is the procedure for upgrading?

    Should I un-install the old version before installing the new version?

    How do I transfer the data (in the database tables) from the old version to the new version?

    I found plenty of information about installing MySQL, but not much on upgrading.

    What should I watch out for during the upgrade?

    Any comments or a link to additional information will be appreciated.

    Thanks,
    Steve

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,019
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    I've never upgraded MYSQL versions myself but if I were the first thing I would do would be to make sure that I had a working backup of all the databases (structure and data) that are stored on the server.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Either no one has upgraded MySQL before or everyone thinks this question is so simple that it doesn't require an answer so I have decided to dive in on my own.

    Here is what I plan to do:

    1. Save (export) the databases to a *.SQL file using mysqldump.
    2. Save the my.ini file from the installation directory.
    3. Un-install the current version of MySQL (verify the service is also deleted).
    4. Install the new version of MySQL.
    5. Edit the my.ini file if necessary.
    6. Import the databases back into MySQL using mysql.

    I have already verified that I can export and then import the structure and data.

    If the whole thing blows up, I can always resort to my latest backup (that I will perform right before the upgrade).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •