[rhn-users] problem with installing mysql server

Richard Riley rriley at procuri.com
Fri Apr 13 22:39:03 UTC 2007


I'm not an expert on this, but it worked fine on my machines.  If you
check the man page for rpm, you will see that it claims to rebuild the
rpm database from installed package headers, so the rebuild of the
database insures it is in sync with what is actually installed.

 

________________________________

From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]
On Behalf Of Chen, Jason
Sent: Friday, April 13, 2007 4:14 PM
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: RE: [rhn-users] problem with installing mysql server

 

Before I do that, could you tell me if it is safe? I mean if will affect
all other rpm's installed. Since I'm working with the servers here and
really have to be careful about deletions and rebuild stuff. Thanks very
much. 

 

Jun

 

________________________________

From: rhn-users-bounces at redhat.com on behalf of Richard Riley
Sent: Thu 4/12/2007 10:31 PM
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: RE: [rhn-users] problem with installing mysql server

Here's something I saw some time ago related to cleaning up the rpm
database.  You might want to try it and see if it removes those
duplicates.

 

>     [root at prophead ~]# cat /usr/local/bin/fixrpmdb

>     #!/bin/bash

>     # fixrpmdb - Clean up RPM database weirdness

>     # Rick Stevens, VitalStream, Inc., 22 January 2004

>     # First, delete the RPM database files since they may be

>     # beyond help...

>     rm -f /var/lib/rpm/__db.*

>     # Now, rebuild the RPM database...

>     echo -n "Rebuilding RPM database, do NOT interrupt..."

>     rpm --rebuilddb

>     echo "Rebuild complete"

>     exit 0

> 

 

Richard

 

________________________________

From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]
On Behalf Of Chen, Jason
Sent: Thursday, April 12, 2007 9:46 PM
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: RE: [rhn-users] problem with installing mysql server

 

Thanks for your reply. The trouble I have here is about unable to do a
clean install. There are 2 mysql-4.1.20-2.RHEL4.1 and I cannot remove
with rpm -e since the 2 packages have the same name. I tried downloading
the new rpm from mysql.com but have conflicts with those 2 files. So I
tried the CD... 

 

Do you mean the 64-bit is not supported? But we have 64-bit SUN servers
and really need to stick to 64-bit achitecture considering the software
we have here for work. 

 

Or please just let me know how to unistall the duplicate-named packages
so that I may proceed with a clean install. Thanks!

Jun

 

________________________________

From: rhn-users-bounces at redhat.com on behalf of Steven Jones
Sent: Thu 4/12/2007 5:23 PM
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: RE: [rhn-users] problem with installing mysql server

Can you do a clean install?

 

If so look at rhas4-32 or better rhas5-32 (it has mysql5). I would
suggest avoiding RH's ??_64, they are "piggy's" when it comes to 3rd
party software (often hard to install, unsupported by 3rd party vendors,
and lacking in "free" rpms compared to 32bit).....otherwise try
rpmfind.net and look for the equiv fedora rpm's if rhas4 ones are not
about....try mysql's website for 64 bit rpms....ie you have a few
options....

 

Or, remove all packages and then install off CD....(do backups of your
database first of course). You could install with -nodeps to get around
such conflicts, but that can be dangerous......MAKE sure you do have a
VALIDATED backup first.

 

Other possibilities is manually bring down rhas5's mysql rpms and try
that as its version 5.

 

Do note that you are turning a supported platform into an un-supported
one...

 

regards

Steven Jones
Senior  Linux/Unix/San System Administrator
APG -Technology Integration Team
Victoria University of Wellington
Phone: +64 4 463 6272 Mobile: +64 27 563 6272 

 

________________________________

From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]
On Behalf Of Chen, Jason
Sent: Friday, 13 April 2007 10:03 a.m.
To: rhn-users at redhat.com
Subject: [rhn-users] problem with installing mysql server

 

Hi, 

Recently, I found our mysql is not running correctly. Then I tried
install the new version of mysql. However, on out Redhat AS 4/x86_64
platform, there were conflicts. I'm not able to remove all the related
mysql rpms since there are duplicate rpm names, like
mysql-4.1.20-2.RHEL4.1. There are 2 of them. So I couldn't remove them
with rpm -e and have a 'clear' upgrade. 

When I resort to the Redhat CD's, I tried to install the old version of
mysql, i.e. 4.1.7. But I got error when I tried to install
mysql-server-4.1.7 

"failed dependencies: mysql=4.1.7 is needed by
mysql-server-4.1.7-4.RHEL4.1.x86_64". 

This type of error also prevents from installing some other mysql
related packages. Can anyone tell me why it is asking an rpm package
which is already there and how to solve the problem? 

Thanks1

Jun

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20070413/edbbeabd/attachment.htm>


More information about the rhn-users mailing list