Setting MariaDB galera cluster di Centos Linux

Langkah yang lakukan :


1. konfigurasi repo Mariadb di Server Utama.



vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

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

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

[mariadb]
query_cache_size=0
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://
wsrep_cluster_name='cluster'
wsrep_node_address='172.18.1.1'
wsrep_node_name='db2'
wsrep_sst_method=rsync
wsrep_sst_auth=cluster:password


yum update
yum install MariaDB-Galera-server MariaDB-client galera
setenforce 0

setenforce 0

setenforce 0

setenforce 0

setenforce 0

setenforce 0

setenforce 0




















Comments

Popular posts from this blog

Persyaratan Domain .id Indonesia

Cara Upload file dengan Software FTP ke server hosting

Cara mengaktipkan CloudFlare di cpanel hosting agar websites lebih cepat diakses