在ubuntu20.04服务器上安装Galera集群,使用以下说明:https://galeracluster.com/2021/03/installing-galera-4-with-mysql-8-on-ubuntu-20-04/
但是在安装之后,当我运行"mysql -uroot -p -e“时,会显示”wsrep_cluster_size“之类的状态,”我总是得到:
+
所以集群没有启动。
sudo状态对mysql没有任何帮助,因为我禁用了用于mysql的设备,使用如下:MySQL的如何禁用装甲。
/etc/mysql/mysql.conf/mysqld.cnf如下所示:
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
log-error = /var/log/mysql/error.log
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=192.168.1.2
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# #
# # # Galera Cluster Configuration
wsrep_cluster_name=flog
wsrep_cluster_address=gcomm://192.168.1.2,192.168.1.3,192.168.1.4
# #
# # Galera Synchronization Configuration
wsrep_sst_method=rsync
# #
# # Galera Node Configuration
wsrep_node_address=192.168.1.2
## This is first node发布于 2021-12-01 14:33:29
已解决: /etc/mysql/my.cnf缺少这一行:
!包括mysql /etc/mysql/mysql.conf.d/
其实我已经把这句话评论掉了,因为我以为!就意味着否定。即排除目录。
https://askubuntu.com/questions/1378608
复制相似问题