Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to update RHEL 5.8 from MySQL 5.1 to the new MySQL 5.5. I have installed the REMI rpm, but I get a long list of package conflicts when trying to upgrade MySQL that way.

I think I need to remove MySQL completely, and then do a fresh install of the new version.

If I run

yum remove mysql-server

Will that remove my databases and the /etc/my.cnf configuration file? I am hoping it won't.

Thanks

share|improve this question

1 Answer 1

No. The database files are not under control of the package. The directory is, but the directory won't be removed if there is anything in it.

$ rpm -qlv mysql-server
...
drwxr-xr-x    2 mysql   mysql                       0 Mar 29 00:39 /var/lib/mysql
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.