Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Uninstall to Upgrade

Status
Not open for further replies.

JustKIDn

MIS
May 6, 2002
386
US
Hi all,

On my linux box, I have MySQL installed. I haven't really done anything with it yet. Except a few experiments for learning.

I want to upgrade to 4.0.12 and thought it best to remove the old version first.

This is on Caldera OpenLinux.

How do I uninstall MySQL?
I don't believe there are any Uninstall scripts. (are there?) Can I just delete the databases? Or is there more that needs to be removed?


tgus

____________________________
Families can be together forever...
 
I know that Sco Open Server has RPM support. I don't know about OpenLinux.

Anyway if it does support .rpm packages installation then, save the rpm file somewhere, let's say /tmp then upgrade the existing installation


rpm -Uvh mysqlxxxxxxxxx.rpm

This should work. If you are new to Linux I would not mees around with compiling from source. If your system does not support rpm then you can still download the 'rpm package manager' from


It will make your life much easier.


Bye


Qatqat

The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
Thanks QatQat,

MySQL was originally installed when Linux was installed from the CD.

I believe Caldera/SCO has always supported RPM.

I haven't been able to find an RPM of MySQL for Caldera/SCO.

Are you saying I can't just delete some files to allow for a new install?

Easier would be nice, but I'll have to compile sometime. So I might as well get it over with.

What are your thoughts?

tgus

____________________________
Families can be together forever...
 
RPMs are compatible for all system that have got RPM support enabled.

I suggest you try to upgrade you installation

rmp -Uvh mysqlxxxxxx4.0.xxxx.rpm

It usually works very smoothly

Bye

Qatqat

The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
But I don't know what you mean by;

rmp -Uvh mysqlxxxxxx4.0.xxxx.rpm

Assuming this is something I type on my Linux box. Don't I have to have the MySQL rpm file downloaded first?

I have already downloaded the .tar.gz file from MySQL.

I looked for a rpm file to download, but I couldn't find one for Caldera/SCO.

I also don't have internet connection on my linux box. It's more secure that way. I use one of my windoz PC's to downwload.

tgus

____________________________
Families can be together forever...
 
MySQL strongly discourages compiling from source. You should either use the binary .tar.gz files or the .rpm files.

//Daniel
 
Yes you have to download it on the Windoz box (any RPM will do as long as you have RPM support enabled on you OpenLinux), move it on the linux box and upgrade your MySQL installation

If the file is called mysql-4-0-12.i386.rpm then, save it in /tmp

go to /tmp and run

rpm -Uvh mysql-4-0-12.i386.rpm

Bye

Qatqat
Qatqat

The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
O.K.

Daniel, it sounds like you're agreeing I have the right file if I'm not using the rpm. The version I downloaded is;
mysql-standard-4.0.12-pc-linux-i686.tar.gz
Is this the right one?

QatQat, where can I download the rpm version?
Are you saying I can't use the above file?

tgus

____________________________
Families can be together forever...
 
Hi Tgus,

Danielhozac is saying that you will have to compile your mysql from source and it is not recommended.

You can instead download MySQL-server-4.0.12-0.i386.rpm
from


and upgrade it as I told you above. There is only one RPM version and it works for all linux flavours.

Bye

Qatqat


The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
I am saying that you shouldn't compile MySQL from source. If you don't feel like using the RPM, or if RPMs are not supported on your system, you should get the .tar.gz files instead, which is what tgus apparently downloaded.

//Daniel
 
Thanks again QatQat,

I downloaded the rpm version from your link.

Now as long as I've got your attention. I've got another (related) question.

I am also about to upgrade PHP and Apache on this same system.
Should I also be looking for rpm packages for these as well?

If so, where can I find them?

I've tried going to rpmfind.net but I can't seem to find anything. Is that the place to go? Or is there someplace better?

tgus

____________________________
Families can be together forever...
 
MySQL is unfortunately the only one of the three to create RPMs. If you want the latest versions of Apache or PHP, you have to compile them yourself or find a site which provides them.
Personally, I build my own RPMs for them just to ease the system maintainence.

//Daniel
 
Hi all
I found this thread. I have the same problem as tgus but I have mysql built from source. Now I want to take it down and don't know how to uninstall it. Is it safe to just delete it from the install dir ? Or are there some switches of the ./configure method, something like ./configure --something=remove. Ore does "make uninstall" or something work ?
Another thing (it may sound stupid), if I use an rpm package and do rpm -Uvh mysql-xxx.i386.rpm will it upgrade the old install or it will just upgrade a previous mysql installation that was installed with rpm ? I assume that i will have 2 versions...
I use Slackware 8.1 but my MySql version is built from source, I didn't use the pkgtool to install it so I can't remove it with that.

Thanks for any help
 
As I recall, I deleted MySQL from everywhere I could find it.
Including the directory that the boot sequence starts files from. don't forget the config file.

Although QatQat seems to say you can just UPGRADE.

After I deleted everything, I just started the install as if it was for the very first time.

HTH!

tgus

____________________________
Families can be together forever...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top