Solved

500PTS!! Help With Upgrading Upgrading Using RPM

Posted on 2003-12-10
3
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 500 total points
ID: 9918282
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
ID: 9921255
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
ID: 9926468
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

636 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