Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can i upgrade mysql version 5.0.22 to version 5.0.51a ??

My server info:

Linux version 2.6.18-8.1.8.el5 (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)


share|improve this question

migrated from Jan 3 '10 at 12:31

This question came from our site for professional and enthusiast programmers.

Make sure to associate your accounts on the accounts tab on your user page. – Dennis Williamson Jan 3 '10 at 12:49


yum upgrade mysql*

but, please, don't forget that:


is your best friend!!!

share|improve this answer

Beyond the basic (correct) answer that pulegium gave...

You are using either RHEL5 or CentOS5; enable your yum system with the IUS Community repository, it's a shared repo (like EPEL) that aims to provide newer PHP and MySQL packages that fit right into your server that was started by Rackspace employees.

Start here:

While 5.0.51a is the latest Red Hat provides, IUS is providing 5.0.88 as of this writing.

share|improve this answer

yum upgrade mysql*

share|improve this answer

Instructions on handling mysql upgrades, regarding the db itself, are in mysql documentation. When you change minor version (eg. form 5.0.x to 5.0.y) there usually isn't very much to do (if anything at all) - although there can always be some minor tweaks here and there.

Instructions about upgrading a package on your distro are in the documentation of your distro.

All in all, I do recommend you to follow the usual updates that come with your distribution of choice. If they bundle some version of MySQL, stick with that unless you have a very good reason not to do so. For a db server, I'd upgrade the whole system rather than putting an 'external' package in the distro - but that's me.

share|improve this answer

sudo yum update mysql-5.0.51a perhaps.

Of course checking that mysql-5.0.51a is indeed the correct name in the yum repositotry for MySQL.

share|improve this answer

Your Answer


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