MariaDB 문서 원본 보기
←
MariaDB
둘러보기로 가기
검색하러 가기
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다:
사용자
.
이 문서는 편집하거나 다른 명령을 할 수 없도록 보호되어 있습니다.
문서의 원본을 보거나 복사할 수 있습니다.
MariaDB를 정리 합니다. *홈페이지 : *다운로드 : *플랫폼 : *라이선스 : ==MariaDB 개요== == CentOS 6.5에서 MariaDB 설치 == '''<span style="color: rgb(0, 0, 255);"><span style="font-size: larger;">MariaDB 저장소 생성</span></span>''' vi /etc/yum.repos.d/MariaDB.repo {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" |- | style="background-color: rgb(241, 241, 241);" | [mariadb]<br/>name = MariaDB<br/>baseurl = [http://yum.mariadb.org/10.0/centos6-amd64 http://yum.mariadb.org/10.0/centos6-amd64]<br/>gpgkey=[https://yum.mariadb.org/RPM-GPG-KEY-MariaDB https://yum.mariadb.org/RPM-GPG-KEY-MariaDB]<br/>gpgcheck=1 |} '''<span style="color: rgb(0, 0, 255);"><span style="font-size: larger;">MariaDB 설치</span></span>''' {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" |- | style="background-color: rgb(241, 241, 241);" | yum update<br/>yum install MariaDB-client MariaDB-server MariaDB-devel service mysqld start<br/>mysql_secure_installationmysql -u root -p mysql<br/> quit |} '''<span style="color: rgb(0, 0, 255);"><span style="font-size: larger;">MariaDB 환경 설정</span></span>''' vi /etc/my.cnf {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" |- | style="background-color: rgb(241, 241, 241);" | yum update<br/>yum install MariaDB-client MariaDB-server MariaDB-devel service mysql start<br/>mysql_secure_installation mysql -u root -p mysql<br/> quit |} == CentOS 7에서 MariaDB 설치 == *[[CentOS|CentOS]] 7에서 MariaDB 설치 yum install mariadb-server mariadb systemctl start mariadb.service systemctl enable mariadb.service *MariaDB 환경 설정 mysql_secure_installation mysql -u root -p mysql quit == MariaDB UTF-8 설정 == *[[문자셋과 인코딩#CentOS 7.EC.97.90.EC.84.9C MariaDB.EC.9D.98.C2.A0UTF-8 .EC.84.A4.EC.A0.95|CentOS 7에서 MariaDB의 UTF-8 설정]] *[[문자셋과 인코딩#CentOS.EC.97.90.EC.84.9C MariaDB.EC.9D.98.C2.A0UTF-8 .EC.84.A4.EC.A0.95|CentOS에서 MariaDB의 UTF-8 설정]] == MariaDB JDBC Driver == *다운로드 사이트 : https://downloads.mariadb.org/client-java/ == 관리자 가이드 == === 데이터 폴더 위치 변경 === MariaDB를 종료 합니다. {| cellspacing="1" cellpadding="1" style="line-height: 20.7999992370605px; font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | service mysql stop |} SELinux 보안 설정 수정 {| cellspacing="1" cellpadding="1" style="font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; line-height: 20.7999992370605px; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | setenforce 0 <div>vi /etc/selinux/config<br/> SELINUX=permissive<br/></div> |} vi /etc/init.d/mysql {| cellspacing="1" cellpadding="1" style="font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; line-height: 20.7999992370605px; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | datadir=/cloudnas/database/mysql |} vi /etc/my.cnf.d/server.cnf {| cellspacing="1" cellpadding="1" style="font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; line-height: 20.7999992370605px; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | [mysqld]<br/>datadir=/cloudnas/database/mysql |} MariaDB를 기동 합니다. {| cellspacing="1" cellpadding="1" style="line-height: 20.7999992370605px; font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | service mysql start |} MariaDB를 데이터 폴더 변경 여부를 확인 합니다. mysql -uroot -p mysql {| cellspacing="1" cellpadding="1" style="line-height: 20.7999992370605px; font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; width: 100%;" |- | style="background-color: rgb(241, 241, 241);" | show variables where variable_name = 'datadir';<font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"></font> |} == Galera Cluster == Galera Cluster에서 1개의 node만 write로 구성(DeadLock 회피)하고 Auto Increment (Table Lock 발생)를 사용하지 않으면 무단하게 구성할 수 있다고 합니다. <pre class="fixed" style="padding: 9px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 20px; line-height: 20px; word-break: break-all; word-wrap: normal; white-space: pre; border: 1px solid rgb(227, 227, 227); min-height: 20px; -webkit-box-shadow: rgba(0, 0, 0, 0.0470588) 0px 1px 1px inset; box-shadow: rgba(0, 0, 0, 0.0470588) 0px 1px 1px inset; overflow-x: auto; background-color: rgb(245, 245, 245);">yum install MariaDB-Galera-server MariaDB-client galera</pre> ==참고 문헌== [[Category:Database]]
MariaDB
문서로 돌아갑니다.
둘러보기 메뉴
개인 도구
로그인
이름공간
문서
토론
변수
보기
읽기
원본 보기
역사 보기
더 보기
검색
주요 메뉴
오픈소스 컨설팅
오픈소스
오픈소스 라이선스
오픈소스 커뮤니티
오픈소스 종류
오픈소스 현황
오픈소스 한글화
문자셋과 인코딩
Storage
Network
보안
고가용성
모니터링
오픈 API
오픈 서비스
Cloud
BigData
Android
산사랑 노트
둘러보기
인기 문서
최근 수정 문서
모든 문서
모든 분류
임의 문서
위키 사용법
자매 사이트
CMS
오비컨 홈페이지
오비컨 CMS
블로그
데모 - SuiteCRM
산사랑의 Twitter
산사랑의 Facebook
친구 사이트
공개SW 포털
OLIS
한국공개소프트웨어협회
AppCenter 지원본부
OLC
PSEG
개발자 블로그
블로터
개인 메뉴
메뉴 수정
양식함
도구
여기를 가리키는 문서
가리키는 글의 최근 바뀜
특수 문서 목록
문서 정보