LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-17-2009, 01:41 AM   #1
chillyroll
LQ Newbie
 
Registered: Oct 2006
Posts: 25

Rep: Reputation: 15
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.

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.

Last edited by chillyroll; 04-17-2009 at 01:48 AM. Reason: added more info
 
Old 04-17-2009, 01:59 AM   #2
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
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.
 
Old 04-17-2009, 02:06 AM   #3
chillyroll
LQ Newbie
 
Registered: Oct 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camh View Post
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.

Last edited by chillyroll; 04-17-2009 at 02:08 AM. Reason: added more info
 
Old 04-17-2009, 02:53 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 07-22-2010, 01:40 AM   #5
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Rep: Reputation: 15
Hi

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

Can anyone please explain this??
 
Old 07-22-2010, 03:44 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,661

Rep: Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533
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

..
 
Old 07-23-2010, 01:16 AM   #7
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot install mysql-server Centos 5.2 sycamorex Linux - Server 5 03-16-2009 07:12 PM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 01:16 PM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
Install MySQL on CentOS 3.4 gives error Azzath Linux - Server 2 05-24-2007 11:59 AM


All times are GMT -5. The time now is 09:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration