컴퓨터 / Computer

CentOS 에 MariaDB 설치하기

0_fivEmSUN_cafc0046fceae53820e6e11ed19a3a0d3034ec3c.jpg 


CentOS를 설치할때 MySQL이나 MariaDB를 전혀 설치하지 않은 경우에 아래와 같이 시도를 한다.

 

1. 설치 여부 확인

 

아래 두 방법 중 하나를 쓰면 알 수 있다.

 

 

 rpm -qa | grep MariaDB

 

 

 

 

 yum list MariaDB

 

 

2. 저장소 등록 

 ( 참고 : https://zetawiki.com/wiki/YUM_MariaDB_%EC%A0%80%EC%9E%A5%EC%86%8C_%EC%B6%94%EA%B0%80

 ( 참고 : https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.2 )

 

 위치 : /etc/yum.repos.d


vi 로 MariaDB.repo를 열어 아래 내용을 추가한 후 저장한다.

 

 # MariaDB 10.2 CentOS repository list - created 2017-12-20 03:45 UTC

# http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1

 

참고로 위 파일은 2017년 12월 20일 현재 10.2 기준이다. 

 

 

3. 설치하기

 

아래와 같이 입력한다. 

 

 yum install MariaDB

 

MariaDB 외에도 MariaDB-server 라고 해도 관련항목들은 모두 설치하는데, 결과 화면은 아래와 같을 것이다.

 

 

 

===================================================================================================================================

 Package                               Arch                 Version                                    Repository             Size

===================================================================================================================================

Installing:

 MariaDB-compat                        x86_64               10.2.11-1.el7.centos                       mariadb               2.8 M

     replacing  mariadb-libs.x86_64 1:5.5.56-2.el7

 MariaDB-server                        x86_64               10.2.11-1.el7.centos                       mariadb               110 M

Installing for dependencies:

 MariaDB-client                        x86_64               10.2.11-1.el7.centos                       mariadb                48 M

 MariaDB-common                        x86_64               10.2.11-1.el7.centos                       mariadb               154 k

 boost-program-options                 x86_64               1.53.0-27.el7                              base                  156 k

 galera                                x86_64               25.3.22-1.rhel7.el7.centos                 mariadb               8.0 M

 libaio                                x86_64               0.3.109-13.el7                             base                   24 k

 lsof                                  x86_64               4.87-4.el7                                 base                  331 k

 perl-Compress-Raw-Bzip2               x86_64               2.061-3.el7                                base                   32 k

 perl-Compress-Raw-Zlib                x86_64               1:2.061-4.el7                              base                   57 k

 perl-DBI                              x86_64               1.627-4.el7                                base                  802 k

 perl-IO-Compress                      noarch               2.061-2.el7                                base                  260 k

 perl-Net-Daemon                       noarch               0.48-5.el7                                 base                   51 k

 perl-PlRPC                            noarch               0.2020-14.el7                              base                   36 k

 

Transaction Summary

===================================================================================================================================

Install  2 Packages (+12 Dependent packages)

 

Total download size: 170 M

Is this ok [y/d/N]: 


 

 

4. 실행하기

 

 service mysql start

 

 

 

이렇게 설치 끝! 

 

 

 

 

 

 

Comments

공유지기 2020.02.11 20:55
10.4 버전 : https://downloads.mariadb.org/mariadb/repositories/#distro=CentOS&distro_release=centos7-amd64--centos7&mirror=nxtHost&version=10.4

고무줄 넓은생 노랑 1000 0159 7x1 500 1개입
칠성상회
당기는 1초 완성 리본장식 9cm 포장재료
칠성상회
앱코 COX CH60 사운드플러스 (화이트)
칠성상회
3M 810 매직테이프 50mm x 65M
바이플러스