MARIADB
MARIADB
====
# MariaDB 10.1 CentOS repository list - created 2016-09-26 11:34 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
=====
Install Innobackupex
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-
3/percona-release-0.1-3.noarch.rpm
yum install percona-xtrabackup-24
Disable selinux
nano /etc/sysconfig/selinux
====
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are
protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
=========
Disable firewall:
chkconfig firewalld off
systemctl stop firewalld
mysql -u root –p
CREATE USER 'sst_puskom'@'localhost' IDENTIFIED BY '20puskom16';
GRANT PROCESS, RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO
'sst_puskom'@'localhost';
FLUSH PRIVILEGES;
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
wsrep_cluster_name="SRSCluster"
wsrep_node_address="172.16.85.123"
wsrep_node_name="node1"
wsrep_sst_method=xtrabackup-v2
wsrep_sst_auth="sst_puskom:20puskom16"
#
# Allow server to accept connections on all interfaces.
#
bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
innodb_log_file_size=100M
innodb_file_per_table
innodb_flush_log_at_trx_commit=2