"MariaDB"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
85번째 줄: 85번째 줄:
  
  
 +
 +
MariaDB를 종료 합니다.
 +
 +
{| cellspacing="1" cellpadding="1" style="line-height: 20.7999992370605px; font-size: 14px; color: rgb(37, 37, 37); font-family: sans-serif; width: 771px;"
 +
|-
 +
| 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: 771px;"
 +
|-
 +
| style="background-color: rgb(241, 241, 241);" |
 +
setenforce 0
 +
<div>vi /etc/selinux/config<br/>&nbsp;&nbsp; &nbsp;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: 771px;"
 +
|-
 +
| 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: 771px;"
 +
|-
 +
| 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: 771px;"
 +
|-
 +
| style="background-color: rgb(241, 241, 241);" |
 +
service mysql start
 +
 +
|}
  
 
== Galera Cluster ==
 
== Galera Cluster ==

2014년 9월 24일 (수) 00:11 판

MariaDB를 정리 합니다.

  • 홈페이지 :
  • 다운로드 :
  • 플랫폼 :
  • 라이선스 :

MariaDB 개요

CentOS 6.5에서 MariaDB 설치

MariaDB 저장소 생성

vi /etc/yum.repos.d/MariaDB.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1


MariaDB 설치

yum update
yum install MariaDB-client MariaDB-server MariaDB-devel

service mysqld start
mysql_secure_installationmysql -u root -p mysql
   quit


MariaDB 환경 설정


vi /etc/my.cnf

yum update
yum install MariaDB-client MariaDB-server MariaDB-devel

service mysql start
mysql_secure_installation

mysql -u root -p mysql
   quit

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 설정


MariaDB JDBC Driver

관리자 가이드

데이터 폴더 위치 변경

MariaDB를 종료 합니다.

service mysql stop


SELinux 보안 설정 수정

setenforce 0

vi /etc/selinux/config
    SELINUX=permissive


vi /etc/init.d/mysql

datadir=/cloudnas/database/mysql


vi /etc/my.cnf.d/server.cnf

[mysqld]
datadir=/cloudnas/database/mysql


MariaDB를 기동 합니다.

service mysql start

Galera Cluster

Galera Cluster에서 1개의 node만 write로 구성(DeadLock 회피)하고 Auto Increment (Table Lock 발생)를 사용하지 않으면 무단하게 구성할 수 있다고 합니다.


yum install MariaDB-Galera-server MariaDB-client galera

참고 문헌