View previous topic :: View next topic |
Author |
Message |
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Sat Apr 26, 2003 10:46 pm Post subject: Upgrading from mysql version 3 to version 4 |
|
|
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 |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sat Apr 26, 2003 11:08 pm Post subject: |
|
|
emerge /usr/portage/dev-db/mysql/mysql-4.0.7.ebuild |
|
Back to top |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Sat Apr 26, 2003 11:12 pm Post subject: |
|
|
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 |
|
|
TheEternalVortex Apprentice
Joined: 15 Oct 2002 Posts: 207 Location: San Jose, CA
|
Posted: Sat Apr 26, 2003 11:54 pm Post subject: |
|
|
4.0.12 is the latest:
emerge /usr/portage/dev-db/mysql/mysql-4.0.12.ebuild _________________ -- Andy |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sun Apr 27, 2003 12:34 am Post subject: |
|
|
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 |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Mon Apr 28, 2003 8:46 am Post subject: |
|
|
Ok. 4.0.12 is build and working perfectly now. I have another question tho. When I run
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 |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Tue Apr 29, 2003 6:54 pm Post subject: |
|
|
No-one know this? Sorry, dont mean to bump, but I cant find any details of this anywhere... |
|
Back to top |
|
|
TooTallForPony n00b
Joined: 13 Dec 2002 Posts: 45
|
Posted: Tue Apr 29, 2003 7:05 pm Post subject: Be careful - upgrading can break many things |
|
|
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 |
|
|
|