LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How To Install MySQL 5.1 in CentOS? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-mysql-5-1-in-centos-719767/)

chillyroll 04-17-2009 01:41 AM

How To Install MySQL 5.1 in CentOS?
 
Hello,

I want to install the latest version of MySQL on my CentOS box. I am trying it with yum but yum is listing out 5.0.58-jason.2 version of MySQL which is pretty older one. Also I tried yum update command also thinking yum itself needs some updations and then tried to run

yum install mysql

but then also it listed only the above version.

I am new to linux and really lost in CentOS world. :p

My Server is:

[root@chillyroll ~]# uname -a
Linux chillyroll 2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux
[root@chillyroll ~]# cat /etc/redhat-release
CentOS release 5.3 (Final)


Thanks.

camh 04-17-2009 01:59 AM

You can always download the RHEL5 RPMs from mysql.com. However, you're probably OK installing the version from yum, since those versions are usually up-to-date (provided that your yum sources are correct and updated), despite the apparent version number mismatch.

chillyroll 04-17-2009 02:06 AM

Quote:

Originally Posted by camh (Post 3511907)
You can always download the RHEL5 RPMs from mysql.com. However, you're probably OK installing the version from yum, since those versions are usually up-to-date (provided that your yum sources are correct and updated), despite the apparent version number mismatch.

Thanks Camh, but the thing is I want MySQL version 5.1 or higher since I need to use Partitioning Support of MySQL which comes only after 5.1 or later. 5.0 doesn't support partitioning.

Any good links which I can refer to install MySQL on CentOS box???

Also, I have updated the yum. But it still shows the older version 5.0.58 version. Now sure why!

Thanks.

billymayday 04-17-2009 02:53 AM

First, uninstall the version you installed with yum (yum remove mysqld). Then download the rpm(s) from mysql.com and install with

rpm -i packagename.

You'll need to sort out a few updated dependencies in all likelihood. You'll probably need the 5.1 client as well.


The reason CentOS doesn't have 5.1 is that RH, and therefore CentOS, doesn't always use the latest and greatest versions of software, but aims for stability. This is the case across kernels and most packages.

rahmad 07-22-2010 01:40 AM

Hi

why I cant use rpm -U on mysql.com RH packages??

Can anyone please explain this??

knudfl 07-22-2010 03:44 AM

rpm -U ( usually rpm -Uvh ) is the default update / install command.

But if the version numbering differs from "default" your current
package will not be updated / replaced.
( major / minor numbering example : 5.1.48-1 )
And the install will behave like 'rpm -i '

'rpm -i ' is the command you will use if no other package
'<name><version>' is installed, or you want to install an
extra versions ( of a library ) : No update, will leave the
e.g. older version installed.


A repository with mysql-5.1.47(48) : The 'Remi repo'
http://blog.famillecollet.com/pages/Config-en
http://rpms.famillecollet.com/enterp...iew/mysql.html

..

rahmad 07-23-2010 01:16 AM

Thanks for explanation.

I have mysql 5.0 and want to move to 5.1 but without backup/reloading the databases. what is the best way to carry out this?

i thought rpm -Uvh will do the job


All times are GMT -5. The time now is 08:28 AM.