Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?
Date: Thu, 02 Sep 2010 18:12:48
Message-Id: 201009021912.18258.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50? by kashani
1 On Thursday 02 September 2010 06:10:05 kashani wrote:
2 > On 9/1/2010 1:00 PM, Aniruddha wrote:
3 > > On Tuesday 31 August 2010 20:30:55 Mick wrote:
4 > >>> But this is apparently not the proper way, because after
5 > >>> restarting the server, apache does not show my web-page
6 > >>> reporting there is no such a database. I checked it with
7 > >>> phpmyadmin, and really, there is absolutely no database
8 > >>> in mysql!
9 > >>>
10 > >>> I quickly restored backup version which I have done just
11 > >>> before trying mysql-update, so my web-site is up and running.
12 > >>> Now I would like to update mysql the right way, I but do not
13 > >>> know how to do it...
14 > >>
15 > >> Hi Jarry,
16 > >>
17 > >> Some years ago I ran into some similar problem, I can't recall exactly
18 > >> what. Lost in folklore (wiki?) were some instructions to first stop
19 > >> mysql before you update it and I have been following them since.
20 > >>
21 > >> I stop apach& mysql, run the update, dispatch-conf and then restart
22 > >> them both. Haven't had problems since.
23 > >>
24 > >> There may be a better way for doing this - in which case others who know
25 > >> better will hopefully chime in.
26 > >
27 > > I'm curious as well. Imo it shouldn't be necessary to stop mysql server
28 > > for each update.
29 >
30 > I did in place upgrades from 5.0.12 or so on up to 5.0.77 or so. You're
31 > unlikely to have problems upgrading Mysql within 5.0.x. If you're moving
32 > up to 5.1, I would definitely stop inserts into Mysql,
33
34 How do you stop inserts? Would this also apply to MyISAMs or only InnoDB?
35
36 > dump mysql, stop
37 > mysql, make a copy of /var/lib/mysql just in case, then upgrade to 5.1.
38 > Mysql should be able to upgrade your database in place, but it might
39 > not. If mysql-update doesn't work, importing a dumb is the most reliable
40 > way to get your data into 5.1.
41 > As other people have pointed out you'll need to revdep-rebuild or
42 > preserve the older client libs.
43 >
44 > kashani
45
46 --
47 Regards,
48 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50? kashani <kashani-list@××××××××.net>