Solved

500PTS!! Help With Upgrading Upgrading Using RPM

Posted on 2003-12-10
3
248 Views
Last Modified: 2013-12-16
Hello All,

    I am having a Problem Using the RPM in Red hat. I have Mysql Installed and want to upgrade to a newer rev. Problem is that when i do a RPM -e to remove the OLD version, it complains about dependicies...What do i do in a case like this??

Or when there are dependicies for any other RPM??

0
Comment
Question by:Johnysteaks
3 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 500 total points
Comment Utility
Have you try rpm -Uvh to do the upgrade?

I personally don't like to use the RPM because of the dependencies, I always upgrade my mysql using the BINARY code, the procedure is very easy as below :


     shell> groupadd mysql
     shell> useradd -g mysql mysql
     shell> cd /usr/local
     shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
     shell> ln -s full-path-to-mysql-VERSION-OS mysql
     shell> cd mysql
     shell> scripts/mysql_install_db
     shell> chown -R root  .
     shell> chown -R mysql data
     shell> chgrp -R mysql .
     shell> bin/safe_mysqld --user=mysql &
     or
     shell> bin/mysqld_safe --user=mysql &
     if you are running MySQL 4.x

and put the /mysql/bin/mysql into /usr/bin that's it.

have a check here for more info on using the mysql rpm http://www.mysql.com/doc/en/Linux-RPM.html
0
 

Expert Comment

by:himallick
Comment Utility
To remove an update and revert to the original version of your
software, locate your original RPM package(s) and run the
command:

  rpm -Uvh --oldpackage OLD_RPM_NAME ...


So download old packages, and run the package upgrade
0
 
LVL 4

Expert Comment

by:marko020397
Comment Utility
You probably don't have only one MySQL rpm package installed. There are more MySQL-server, MySQL-client, MySQL-devel, MySQL-shared. Find out which RPM you have with "rpm -qa | grep MySQL". If you try to install new MySQL-server it won't install because MySQL-client needs previous version. First download all RPM you need. You have many options:

1. Upgrade all packages: run where you have downloaded new RPMS "rpm -Uvh MySQL*"
2. Uninstall everything except server then upgrade the server and install other packages.
3. Uninstall all MySQL packages and install the new ones.

Any option will do the job. The only thing you should be carefull is about versions. Some time ago the
server was named mysql.x.x.x.x.rpm and was then renamed to MySQL-server.x.x.x.x.rpm (x.x.x.x means
version). In this case it is best to uninstal MySQL completely and install it again.

If you are upgrading from a very old version you could have problems with database named "mysql" because
there are many new permissions in newer versions and database "mysql" is different.

All databases will remain intact during upgrade/install/uninstall. Except database "mysql" in some cases.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now