거꾸로 바라본 세상
반응형

우분투에서 MariaDB 설치하기



설치 OS : Ubuntu 14.04LTS


1. MariaDB 다운로드


1-1. https://downloads.mariadb.org/ 에 들어가서상단에 linux 전용 repositry configuration tool 페이지로 진입.


1-2. step별로 항목 선택 : Ubuntu → 14.04 LTS 'trusty' → 10.1[Stable] → KAIST File Archive


1.3 아래 순서대로 입력


Here are the commands to run to install MariaDB on your Ubuntu system:


$ sudo apt-get install software-properties-common

$ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

$ sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main'



Once the key is imported and the repository added you can install MariaDB with:


$ sudo apt-get update

$ sudo apt-get install mariadb-server



2. 설치 중 문제들


2-1 apt-get update에서 패키지들이 404 Not Found 발생하는 경우


-  /etc/apt/sources.list 에서 mariaDB에 관련된 것을 주석처리한다.


- $ sudo vi /etc/apt/sources.list


* 진행하기전에 soruces.list 파일을 복사해둔다 : $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.old


그리고 다시 $ sudo apt-get update를 해주고


$ sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main'

$ sudo apt-get update

를 수행한다.



2-2. 공개키 오류 


sudo apt-get update 진행중 

W: GPG 오류: http://nginx.org trusty Release: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY ABF5BD827BD9BF62

라는 문제가 발생할 경우 아래 명령을 입력하여 해결한다.


$ gpg --keyserver keyserver.ubuntu.com --recv (문제가발생한 키 값)


$ gpg --export --armor ABF5BD827BD9BF62 | sudo apt-key add -


$ sudo apt-get update


3-3 $ sudo apt-get install mariadb-server 를 실행하고 의존성 관련 에러가 발생하여 설치가 안되는 경우


ubuntu에 있는 mysql을 삭제하고 다시 설치를 진행한다.


(1) sudo apt-get remove --purge mysql*

(2) sudo apt-get install mariadb-server

반응형

'Database > MariaDB' 카테고리의 다른 글

원격계정 접속관리  (0) 2016.08.10
profile

거꾸로 바라본 세상

@란지에。

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!