473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Should I upgrade to Mysql 5?

Hi there,

I'm trying to figure out if it's going painless to upgrade our oooold
mysql 3.23 to the latest MySQL 4 or 5.
Any suggestions?

Thanks in advance!

David

Oct 21 '05 #1
4 2106
wz*******@gmail.com wrote:
Hi there,

I'm trying to figure out if it's going painless to upgrade our oooold
mysql 3.23 to the latest MySQL 4 or 5.
Any suggestions?


It would be very advisable to back up your database(s) before installing
any new version of the software, and then restore the databases after
installing the software. I wouldn't rely on the database file format
remaining seamlessly compatible between such a wide range of software
versions. Restoring a backup basically recreates the database, so it
would be sure to recreate it in a format compatible with the new
software. Plus it's always good to have a backup.

I would recommend trying some tests on a separate machine, install MySQl
4.1 or 5.0 on another machine (even a laptop) and restore your backup
there. Run a few tests to make sure the data looks like it is
compatible, before installing the new software on your live server. The
reason I suggest using a different machine is that it is a complex
process to run two versions of MySQL on one host.

One particularly significant issue is that MySQL 4.1 and 5.0 use a
different algorithm for encoding passwords. You'll probably want to
start the newer servers with the --old-passwords option, at least
temporarily. If you don't, none of the existing passwords will work,
and you'll have to use GRANT to assign privileges to the databases.

See http://dev.mysql.com/doc/refman/4.1/...d-hashing.html for a
full explanation of the difference in the password algorithm.

There are also changes to the handling of character sets that could
affect your database.

You can also read the change history for 4.0, 4.1, and 5.0 at these
locations:

http://dev.mysql.com/doc/refman/4.1/en/news-4-0-x.html
http://dev.mysql.com/doc/refman/4.1/en/news-4-1-x.html
http://dev.mysql.com/doc/refman/5.0/en/news-5-0-x.html

Regards,
Bill K.
Oct 21 '05 #2
Hi,

take also care of the structures of the tables in the mysql database (where
all the privileges are set), they have changed significantly between MySQL
3.23 and MySQL 5 (also to MySQL 4.x), because there are a lot of new
privileges that were added between these versions.

If you install the new MySQL version on a testing machine like Bill
suggested (I'd also suggest that), take these tables as reference.

Good luck!

Markus
Oct 21 '05 #3
"Markus Popp" <mf*@gmx.li> wrote in
news:43**********************@newsreader02.highway .telekom.at:
Hi,

take also care of the structures of the tables in the mysql database
(where all the privileges are set), they have changed significantly
between MySQL 3.23 and MySQL 5 (also to MySQL 4.x), because there are
a lot of new privileges that were added between these versions.

If you install the new MySQL version on a testing machine like Bill
suggested (I'd also suggest that), take these tables as reference.

Good luck!

Also note that MySQL documentation suggests that you upgrade without
skipping versions:

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

Oct 26 '05 #4
I would do it this way:

* make a dump of all your data except the mysql database
* make a separate dump of the mysql database
* uninstall MySQL 3.23
* install the latest MySQL version from scratch
* create a separate database for the previously dumped mysql database (e.g.
mysql_old) and restore this dump
* sync the old mysql database with the new one (this might require some
manual work, because the structures will be slightly different)
* when the new mysql database is OK, restore the dump of the data

If you have a chance, try to install the new version on a separate machine,
before you uninstall MySQL 3.23 to make sure that everythink works.

Markus
Oct 26 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
1
by: Jeremy Ross | last post by:
Hello, I am looking to upgrade my versions of PHP & MySQL on my server. I am wondering what websites you would recommend that are easy to fallow and with step by step instructions on how to...
0
by: sanjay gupta | last post by:
Dear All, I want to upgrade my mysql ver 3.20.32a-3 on my Red Hat linux 6.2 machine to mysql 3.23 version. Presently i have glib-1.2.6-3 and libc-5.3.12-3.1. How can i upgrade to version 3.23....
8
by: ampeloso | last post by:
Hello, My hosting company is running 3.23.49 .I have asked him to upgrade to 4.xx ( I need xml support).He said he would do I if he can be assured (from a reputable mysql website).that it would...
2
by: BDR | last post by:
Questions for anyone with experience on this topic... Sit: We're running a standalone server with applications/db's written around 3.23.41. Linux R/H 7.2 with updates. This is an Apache...
0
by: s a n j a y | last post by:
Hi All, I am want to upgrade MySQL from 4.0 to 4.1 on linux. The reason being the subqueries. Problem is Failed dependencies: libcrypto.so.0.9.6 is needed by MySQL-Max-4.1.0-0...
1
by: yasaswi | last post by:
I have MySQL server 4.0.12-standard installation. How can I upgrade to 4.1.10-standard version? Of course I can always build a brand new server with a new 4.1.10 install. But other than that final...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
0
by: hristozov | last post by:
Hello group! The configuration: Windows, PHP 4.4.3, MySQL 5.0.24 I'm trying to upgrade PHP 4.4.3 to 5.1.6. I've installed and configured everything but there is a problem with my db...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.