"리눅스 MySQL 최신버전 설치"의 두 판 사이의 차이

32번째 줄: 32번째 줄:
[root@jmnote ~]# yum install MySQL-server-5.6.17-1.el6.x86_64.rpm  
[root@jmnote ~]# yum install MySQL-server-5.6.17-1.el6.x86_64.rpm  
... (생략)
... (생략)
======================================================================
==========================================================================================
  Package Arch   Version     Repository                         Size
  Package         Arch       Version         Repository                             Size
======================================================================
==========================================================================================
Installing:
Installing:
  MySQL-server
  MySQL-server     x86_64     5.6.17-1.el6     /MySQL-server-5.6.17-1.el6.x86_64     233 M
          x86_64 5.6.17-1.el6 /MySQL-server-5.6.17-1.el6.x86_64 233 M


Transaction Summary
Transaction Summary
======================================================================
==========================================================================================
Install      1 Package(s)
Install      1 Package(s)



2014년 4월 19일 (토) 00:55 판

리눅스 MySQL 최신 버전 설치

1 리눅스 확인

[root@jmnote ~]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m
[root@jmnote ~]# getconf LONG_BIT
64
→ CentOS 6.3이고 64비트이다.

2 다운로드

  • 웹브라우저에서 http://dev.mysql.com/downloads/mysql/ 접속
  • Select Platform: Red Hat Enterprise Linux / Oracle Linux 선택[1]
  • Red Hat Enterprise Linux 6 / Oracle Linux 6 (x86, 64-bit), RPM Package MySQL Server 오른쪽에 있는 [Download]
  • 로그인 (계정 없으면 가입)
  • [Download Now » ] 클릭하여 MySQL-server-5.6.17-1.el6.x86_64.rpm 다운로드 (52.1MB)

3 업로드 및 설치

  • rpm 파일을 대상 서버에 업로드
[root@jmnote ~]# ll *.rpm -h
-rw-r--r--. 1 root root 53M Apr 19 00:51 MySQL-server-5.6.17-1.el6.x86_64.rpm
[root@jmnote ~]# yum install MySQL-server-5.6.17-1.el6.x86_64.rpm 
... (생략)
==========================================================================================
 Package          Arch       Version          Repository                             Size
==========================================================================================
Installing:
 MySQL-server     x86_64     5.6.17-1.el6     /MySQL-server-5.6.17-1.el6.x86_64     233 M

Transaction Summary
==========================================================================================
Install       1 Package(s)

Total size: 233 M
Installed size: 233 M
Is this ok [y/N]: y
... (생략)
  file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.17-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64

Error Summary
-------------
→ mysql-libs 패키지와 충돌이 있음
[root@jmnote ~]# yum list installed | grep mysql-lib
mysql-libs.x86_64       5.1.61-4.el6    @anaconda-CentOS-201207061011.x86_64/6.3
→ CentOS 설치시에 설치된 패키지임
[root@jmnote ~]# yum remove mysql-libs.x86_64
... (생략)
==========================================================================================
 Package        Arch   Version             Repository                                Size
==========================================================================================
Removing:
 mysql-libs     x86_64 5.1.61-4.el6        @anaconda-CentOS-201207061011.x86_64/6.3 4.0 M
Removing for dependencies:
 cronie         x86_64 1.4.4-7.el6         @anaconda-CentOS-201207061011.x86_64/6.3 166 k
 cronie-anacron x86_64 1.4.4-7.el6         @anaconda-CentOS-201207061011.x86_64/6.3  43 k
 crontabs       noarch 1.10-33.el6         @anaconda-CentOS-201207061011.x86_64/6.3 2.4 k
 postfix        x86_64 2:2.6.6-2.2.el6_1   @anaconda-CentOS-201207061011.x86_64/6.3 9.7 M
 sysstat        x86_64 9.0.4-20.el6        @anaconda-CentOS-201207061011.x86_64/6.3 807 k

Transaction Summary
==========================================================================================
Remove        6 Package(s)

Installed size: 15 M
Is this ok [y/N]: y
... (생략)
Removed:
  mysql-libs.x86_64 0:5.1.61-4.el6                                                        

Dependency Removed:
  cronie.x86_64 0:1.4.4-7.el6              cronie-anacron.x86_64 0:1.4.4-7.el6           
  crontabs.noarch 0:1.10-33.el6            postfix.x86_64 2:2.6.6-2.2.el6_1              
  sysstat.x86_64 0:9.0.4-20.el6           

Complete!

4 같이 보기

5 주석

  1. 설치할 서버에 맞는 것으로 선택한다. Debian, SuSE 등이 있다. 여기서는 CentOS가 레드햇 계열이므로 이것을 선택했다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}