Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MariaDB_Galera_Cluster is not working

$
0
0

Can anyone give me an idea why my replication doesn't work? (I'm using MariadB-galera-server-5.5).

I'm following exactly these instructions:

sudo nano /etc/mysql/conf.d/cluster.cnf



 [mysqld]
query_cache_size=0
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
query_cache_type=0
bind-address=0.0.0.0

wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_name="test_cluster"
wsrep_cluster_address="gcomm://first_ip,second_ip,third_ip"
wsrep_sst_method=rsync
wsrep_node_address="node_ip"
wsrep_node_name="node_name"

sudo nano /etc/mysql/debian.cnf

    [client]
host     = localhost
user     = debian-sys-maint
password = 03P8rdlknkXr1upf
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host     = localhost
user     = debian-sys-maint
password = 03P8rdlknkXr1upf
socket   = /var/run/mysqld/mysqld.sock
basedir  = /usr

sudo service mysql stop
sudo service mysql start --wsrep-new-cluster
sudo service mysql start

My error log shows this:

sudo tail -f /var/log/mysqld.error.log

161221 11:52:50 InnoDB: Waiting for the background threads to start
161221 11:52:51 Percona XtraDB (http://www.percona.com) 5.5.52-MariaDB-38.3 started;  sequence number 1598149
161221 11:52:51 [Note] P1ugin ‘FEEDBACK’ is disabled.
161221 11:52:51 [Note] Server socket created on IP: ‘0.0.0.0’.
161221 11:52:51 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!!
Please use ‘--log-basename=#’ or ‘--retay-log=mysqld-relay-bin’ to avoid this problem.
161221 11 :52:52 [Note] Event Scheduler: Loaded 0 events
161221 11:52:52 [Note] WSREP: Read nil XID from storage engines, skipping position init
161221 11:52:52 [Note] WSREP: wsrep_load() : loading provider library ‘none’
161221 11:52:52 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.5.53-MariaDB-1—trusty-wsrep’ socket: ‘/var/run/mysqld/mysqld.sock’ port:
3306 mariadb.org binary distribution, wsrep_25 .14. r9949137

Viewing all articles
Browse latest Browse all 17268

Trending Articles