mariadb在ubuntu mate集群上安装

时间:2018-02-06 08:18:43

标签: ubuntu mariadb cluster-computing kaa galera

我试图在具有3个节点的群集(ubuntu mate 16.04)上安装mariadb。 我做了this link所说的所有事情,但是在跑完之后:

sudo service mysql start —wsrep-new-cluster

我收到此错误:

Job for mysql.service failed because the control process exited with 
error code. See "systemctl status mysql.service" and "journalctl -xe" 
for details.

我检查了状态,但我无法理解这个问题:

mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since سه<U+200C>شنبه 2018-02-06 
11:36:14 IRST; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 16232 ExecStart=/etc/init.d/mysql start (code=exited, 
status=1/FAILURE)
Tasks: 0 (limit: 512)

فوریه 06 11:36:16 compute-00 mysqld[17101]: 180206 11:36:16 [ERROR] 
WSREP: gcs/src/gcs.cpp:gcs_open():1404: Fail
فوریه 06 11:36:16 compute-00 mysqld[17101]: 180206 11:36:16 [ERROR] 
WSREP: gcs connect failed: Connection timed 
فوریه 06 11:36:16 compute-00 mysqld[17101]: 180206 11:36:16 [ERROR] 
WSREP: wsrep::connect(gcomm://11.0.0.1,11.0.
فوریه 06 11:36:16 compute-00 mysqld[17101]: 180206 11:36:16 [ERROR] 
Aborting
فوریه 06 11:36:16 compute-00 mysqld[17101]: 
فوریه 06 11:36:16 compute-00 mysqld[17101]: 180206 11:36:16 [Note] 
WSREP: Service disconnected.
فوریه 06 11:36:17 compute-00 mysqld[17101]: 180206 11:36:17 [Note] 
WSREP: Some threads may fail to exit.
فوریه 06 11:36:17 compute-00 mysqld[17101]: 180206 11:36:17 [Note] 
/usr/sbin/mysqld: Shutdown complete
فوریه 06 11:36:17 compute-00 mysqld[17101]: 
فوریه 06 11:36:17 compute-00 mysqld_safe[17477]: mysqld from pid file 
/var/run/mysqld/mysqld.pid ended

任何帮助将不胜感激。

P.S。节点是:

compute-00 11.0.0.1(master)

compute-01 11.0.0.2

compute-02 11.0.0.3

1 个答案:

答案 0 :(得分:0)

我试过安装maria galera的方式: installing mariadb galera on ubuntu 16.04 cluster with 3 nodes