Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading from mysql version 3 to version 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Sat Apr 26, 2003 10:46 pm    Post subject: Upgrading from mysql version 3 to version 4 Reply with quote

Hi there,

I cant work out how to get portage to build and install version 4 of mysql. I am currently running 3.53 and want to upgrade. I've tried uncommenting the dev-db/mysql-4.0.1_alpha in package.mask but it doesn't help...

Any ideas? Thanks,
Ben
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Apr 26, 2003 11:08 pm    Post subject: Reply with quote

emerge /usr/portage/dev-db/mysql/mysql-4.0.7.ebuild
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Sat Apr 26, 2003 11:12 pm    Post subject: Reply with quote

Many thanks for the fast response. How would I find out this sort of informattion in future?

Is this version 4.0.7 or is it actually 4.1.12 and the ebuild script is poorly named? If it is 4.0.7, is there a reason for this?
Back to top
View user's profile Send private message
TheEternalVortex
Apprentice
Apprentice


Joined: 15 Oct 2002
Posts: 207
Location: San Jose, CA

PostPosted: Sat Apr 26, 2003 11:54 pm    Post subject: Reply with quote

4.0.12 is the latest:
emerge /usr/portage/dev-db/mysql/mysql-4.0.12.ebuild
_________________
-- Andy
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sun Apr 27, 2003 12:34 am    Post subject: Reply with quote

Whoops my bad. My dir listing was in ABC order, which made me assume 4.0.7 was the latest as it was the last file in the listing ;p

FYI you could have found this probably by searching for "installing masked ebuilds" in the quick search field in the upper right hand corner of all the forum pages.
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Mon Apr 28, 2003 8:46 am    Post subject: Reply with quote

Ok. 4.0.12 is build and working perfectly now. I have another question tho. When I run
Code:
emerge -p world

I get the following show up
Code:
[ebuild    UD] dev-db/mysql-3.23.56 [4.0.12]

I'm not sure what the "D" stands for in the ebuild tag...Downgrade? How can I stop this from being the default behaviour?
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Tue Apr 29, 2003 6:54 pm    Post subject: Reply with quote

No-one know this? Sorry, dont mean to bump, but I cant find any details of this anywhere...
Back to top
View user's profile Send private message
TooTallForPony
n00b
n00b


Joined: 13 Dec 2002
Posts: 45

PostPosted: Tue Apr 29, 2003 7:05 pm    Post subject: Be careful - upgrading can break many things Reply with quote

Be careful of upgrading to MySQL v4 from v3 - many things will break, notably postfix. Run "qpkg -q -I mysql" to get a list of the packages that you have installed that currently depend on the mysql package. You should see a list like this:

dev-db/mysql-4.0.12 *
DEPENDED ON BY:
dev-libs/cyrus-sasl-2.1.12
dev-perl/DBD-mysql-2.1013-r1
net-mail/postfix-2.0.9
x11-libs/qt-3.1.2-r3

Looks nice and short. However, many other packages depend on these. For instance, squid depends on cyrus-sasl, and all of KDE depends on qt. You may find that you'll need to recompile some or all of these after upgrading MySQL. You can probably avoid recompiling if you keep the old MySQL v3 libraries around - just don't use -u when you emerge and you should be okay. Good luck!

P.S. The D when you do emerge -p means it wants to downgrade to an earlier package - probably because some other package depends on it. You can use the qpkg -q command to find out which one it is and upgrade it. Alternately, you can pass -U to emerge, which tells it not to downgrade packages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum