473,809 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

upgrading from 4.1.12 to 5.0.1

my question is can i just install the new version of mysql, stop the
old, point the data directory for the new one to the data directory and
just start up mysql 5? or do i need to take some extra steps int eh
process. also is there any data corruption possible in the process i
described

Dec 14 '05 #1
5 1607
"Shiraz" <sh*****@gmail. com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
my question is can i just install the new version of mysql, stop the
old, point the data directory for the new one to the data directory and
just start up mysql 5? or do i need to take some extra steps int eh
process. also is there any data corruption possible in the process i
described


There is always data corruption possible! A system admin friend of mine
said, "always assume the computer is out to get you... not users in general,
but YOU. It's personal."

First, read the following pages, and perform the recommended steps.
Consider if your databases or applications use any of the features for which
there are incompatible changes between 4.1 and 5.0.
http://dev.mysql.com/doc/refman/5.0/...-from-4-1.html
http://dev.mysql.com/doc/refman/5.0/en/news-5-0-x.html

Back up your databases under MySQL 4.1, then then restore the databases
using MySQL 5.0. That is the safer procedure. Plus you have a backup
(which should be your daily habit already).

I recommend against configuring two instances of MySQL to use the same data
directory, because if both of them are running simultaneously, they are
_certain_ to corrupt the databases. You might forget to disable MySQL 4.1
as a starts-during-boot service, and then next time you reboot, both
instances will start up, and they'll be writing to the same data dir.

Also be sure to get the latest production release of MySQL 5.0, which is
currently 5.0.16. 5.0.1 is 18 months old, and it is pre-beta software.

Regards,
Bill K.
Dec 15 '05 #2
"Shiraz" <sh*****@gmail. com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
my question is can i just install the new version of mysql, stop the
old, point the data directory for the new one to the data directory and
just start up mysql 5? or do i need to take some extra steps int eh
process. also is there any data corruption possible in the process i
described


There is always data corruption possible! A system admin friend of mine
said, "always assume the computer is out to get you... not users in general,
but YOU. It's personal."

First, read the following pages, and perform the recommended steps.
Consider if your databases or applications use any of the features for which
there are incompatible changes between 4.1 and 5.0.
http://dev.mysql.com/doc/refman/5.0/...-from-4-1.html
http://dev.mysql.com/doc/refman/5.0/en/news-5-0-x.html

Back up your databases under MySQL 4.1, then then restore the databases
using MySQL 5.0. That is the safer procedure. Plus you have a backup
(which should be your daily habit already).

I recommend against configuring two instances of MySQL to use the same data
directory, because if both of them are running simultaneously, they are
_certain_ to corrupt the databases. You might forget to disable MySQL 4.1
as a starts-during-boot service, and then next time you reboot, both
instances will start up, and they'll be writing to the same data dir.

Also be sure to get the latest production release of MySQL 5.0, which is
currently 5.0.16. 5.0.1 is 18 months old, and it is pre-beta software.

Regards,
Bill K.

Dec 15 '05 #3
thanks for the advice. actually i am about to install 5.0.15, missed
that on my post. i am a newbie and any and all advice is appreciated.

i am planning to back up the database anyways, but due to limited
resources, i am not able to backup the database in one go using
mysqldump. for starters, the size of the DB is more than 250 GBs. but i
will do a data dump.

anyways when you say restore the DB, what do you mean by that? get the
mysqldump output and restore that?

anyways will come up with a plan by tomorrow and post it. hopefuly all
will go well.

Dec 15 '05 #4
"Shiraz" <sh*****@gmail. com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
i am planning to back up the database anyways, but due to limited
resources, i am not able to backup the database in one go using
mysqldump. for starters, the size of the DB is more than 250 GBs. but i
will do a data dump.
Mysqldump has many options for backing up individual tables. You can even
back up subsets of a specified table using the --where option. See
documentation.

Mysqldump output usually compresses very well, with tools such as Zip or
gzip.
anyways when you say restore the DB, what do you mean by that? get the
mysqldump output and restore that?


Yes, that is what I meant.

Regards,
Bill K.
Dec 15 '05 #5
I recently experimented with installing multiple MySQL instances on one
machine - here's what my experiences were:

In Windows, it was very easy, you would only have to make a 2nd
installation, using a different location and a different port. Then you'd
have to install a second service (I suppose, you'd like to run it as
service/deamon) and redirect the second installation to the different
service (MySQL Administrator is a great tool for this). That's all you
should have to do (except setting the MySQL privileges of course).

With Linux, there's a little more to do - again you would have to install
the second server on a different location. You need to run the
mysql_install_d b script (if you install it using the tar.gz file) and
install the mysql.server in the /etc/init.d directory (of course, use
another name as the existing start up file for the other server). You will
probably have to make some changes in it - to set the data directory, the
base directory, the different port and maybe other things. You should also
make the same settings in the my.cnf file, which should be located in the
data directory of each MySQL installation.

You also shouldn't forget to set the permissions right and it's good
practice to start the server with a separate user (mostly mysql) that only
has the required Linux privileges to do what's really necessary.

As Bill already said, you should be careful that both servers don't share
any resources - the minimum is to set different data locations and different
ports, but you should keep everything separated: the configuration files,
the InnoDB tablespaces, the log file locations a.s.o.

The best practice to transfer the data will be mysqldump - I don't think,
there is a more efficient (and secure) way to backup and restore your data.

However, you should also read this:
http://dev.mysql.com/doc/refman/5.0/...e-servers.html

Wish you good luck ;-)!

Markus
Dec 15 '05 #6

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

Similar topics

3
2479
by: S. Crespel | last post by:
Hi, Where can I find informations about consequences of upgrading from PHP 4.2.3 to 4.3 regarding existing PHP applications ? I have lots of existing PHP (4.2.3) scripts, will everything still work if I upgrade PHP to 4.3 ? What changes have to be done ? (Solaris 8, Apache 1.3.28, Oracle 8.1.9.3)
1
1898
by: bartolomesintes | last post by:
Hi, I have installed PHPHome 2.3.4 in Windows XP. This WAMP package installs Apache 2.0.50 , PHP 5.0.0 and it works fine. The SQLite installed version is 2.8.14 and I would like to upgrade to a later version. Is it possible? Is the upgrading process explained somewhere? Thanking you in advance, Barto
6
1641
by: Michael Foord | last post by:
http://www.voidspace.org.uk/python/articles/upgrading_python.html I've been looking at whether to upgrade immediately from Python 2.3 to Python 2.4 or postpone it. This is my first `major version change`, so I've come up against the usual windoze (tm) problem - upgrading python breaks all my extension modules. I've been looking into the issues, what modules do I use, can I compile them myself ? etc... and the result is a brief article...
0
1435
by: Jonathan Hilgeman | last post by:
Currently, I'm running 3.23.51 on Red Hat 7.1, and I'm contemplating upgrading to MySQL 4.0, but I'm not sure what to expect. I don't know if MySQL 4.0 is fully backwards-compatible with 3.23.x versions, or if something is going to break if I upgrade. What are the main advantages of upgrading to 4.0? Speed? Features? I can go through the whole changelog if need be, but I'd prefer to hear what actual users are reporting as far as...
2
1639
by: wellington fan | last post by:
Dear newsies, My ISP has offered to upgrade my servers from 3.23 to 4.1. I'm excited by the potential gains in performance, and the ability to write subqueries, but am wary of any forward incompatibilities. I have a mass of PHP code with MySQL throughout. I don't relish peeking into every file and making a determination of 'it should work' by eyeballs alone.
5
512
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a starting point the compiler can no longer find the function as at the bottom of this posting, that was in the Global.asax.vb file. All the function does is give an easy / quick way of getting the application
13
2657
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine, but I would like to have all the office apps on the same version. So I have a few questions: 1) Is the file format the same as 2002? Can 2002 users read 2003 files? 2) What are the major reasons for upgrading to 2002 ?
11
1939
by: Aidan Tobin | last post by:
Hi, I have to upgrade a number of databases from Access 2.0, Access 97 and Access 2000 to work in Office 2003. These databases contain a number of Forms coded with VBA as well as a number of Queries/Macros. The Microsoft web site says that Office 2003 will open databases created in these versions. However i have in the past upgraded databases from access 2.0 to 97
1
1552
by: progTiger | last post by:
The upgrade wizard just hangs on step 5 of 5 when it reaches "Upgrading DataEnvironment..." I have let it sit for 3 hours and it does nothing. .Net Studio is not frozen, but the process does nothing. How do I get past this?? Tiger
6
1614
by: JimLad | last post by:
Hi, We have a major ASP app that we are in the process of upgrading to ASP.NET 1.1 and probably on to ASP.NET 2.0 in the middle of next year. (We will also be upgrading to SQL2K5 at the same time). The current architecture is heavily based on the client side, both for validation and data access. The asp page is returned and then data is modified or selected using XMLHTTP objects embedded on the page, which post or get to a data...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.