mysql 5.5 은 yum 기본설치로는 설치할수 없습니다.
구글링 하다가 mysql 5.5를 yum을 통해서 설치하는 법이 있어서 스크랩 차원에서 남겨둡니다.
Step 1: Installing Remi Repository
Firstly, we need to install the Remi repository on your selected Linux distributions.
For Fedora 18-12
## Install Remi Repository on Fedora 17, 16, 15 rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm ## Fedora 18 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-18.rpm ## Fedora 17 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm ## Fedora 16 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpm ## Fedora 15 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-15.rpm ## Fedora 14 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm ## Fedora 13 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-13.rpm ## Fedora 12 ## rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm
For RHEL/CentOS 6-5
## Install Remi Repository on RHEL/CentOS 6.7-6.0 ## rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ## Install Remi Repository on RHEL/CentOS 5.4-5.0 ## rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Step 2. Checking MySQL 5.5.30 Availability
After, installing Remi repository on your system, then look for MySQL latest version using –enablerepo=remi switch option.
# yum --enablerepo=remi list mysql mysql-server
Sample Output:
Available Packages mysql.i686 5.5.30-1.el6.remi remi mysql-server.i686 5.5.30-1.el6.remi remi
Step 3: Updating or Installing MySQL 5.5.30
Once you see the latest MySQL version is available for installation, then follow below steps to update or install MySQL 5.5.30.
# yum --enablerepo=remi install mysql mysql-server
Step 4: Starting/Stopping MySQL Server
Follow the below command to start/stop of the MySQL service.
# /etc/init.d/mysqld start # /etc/init.d/mysqld stop # /etc/init.d/mysqld status
Step 5: Connecting to MySQL Server
Connecting to newly installed MySQL server by providing username and password. If you haven’t yet set any password for your MySQL installation the simply hit enter.
# mysql -u root -p
Sample Output:
[root@twiki ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1052 Server version: 5.5.30 MySQL Community Server (GPL) by Remi Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. mysql>
That’s it, you’ve successfully installed MySQL 5.5.30 on your system. If you’re having any trouble installing feel free to use our comment section for solutions.
출처 : http://www.tecmint.com/install-mysql-on-rhel-centos-6-5-fedora-17-12/
'Linux' 카테고리의 다른 글
[linux][utf-8] 리눅스 mp3 태그 한글 깨짐 해결 UTF-8 변환법 (0) | 2014.04.27 |
---|---|
[linux][mysql] 소스로 설치한 mysql 부팅시 자동실행되게 service 등록 (0) | 2014.04.23 |
[linux][nas] 리눅스 나스 서버의 트랜스미션 토렌트 다운받은 파일 권한 777 설정 (0) | 2014.04.21 |
[linux] 리눅스에서 bin 형태의 설치 파일 설치하기 (0) | 2014.04.19 |
[linux][mysql] CentOS에 소스파일로 MySQL 설치 방법 (2) | 2014.04.17 |