简体   繁体   English

percona xtradb cluster mysql启动错误

[英]percona xtradb cluster mysql startup error

i have 2 nodes to prepare percona xtradb cluster , i have successfully installed the applications .我有 2 个节点来准备 percona xtradb 集群,我已经成功安装了应用程序。 then I tried to configure the file my.cnf NODE1 :然后我尝试配置文件 my.cnf NODE1 :

cat >>/etc/my.cnf<<EOF
[mysqld]
wsrep_provider=/usr/lib64/galera3/libgalera_smm.so
wsrep_cluster_name=democluster
wsrep_cluster_address=gcomm://192.168.254.126,192.168.254.127
wsrep_node_name=centosvm02
wsrep_node_address=192.168.254.126
wsrep_sst_method=xtrabackup-v2
wsrep_sst_auth=uertest:123abc@A
pxc_strict_mode=ENFORCING
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
EOF

NODE 2 :节点 2:

cat >>/etc/my.cnf<<EOF
[mysqld]
wsrep_provider=/usr/lib64/galera3/libgalera_smm.so
wsrep_cluster_name=democluster
wsrep_cluster_address=gcomm://192.168.254.126,192.168.254.127
wsrep_node_name=centosvm02
wsrep_node_address=192.168.254.127
wsrep_sst_method=xtrabackup-v2
wsrep_sst_auth=uertest:123abc@A
pxc_strict_mode=ENFORCING
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
EOF

after config is done i started systemctl start mysql@bootstrap but it failed.配置完成后,我启动了 systemctl start mysql@bootstrap 但它失败了。 I discovered an error on startup enter image description here我在启动时发现错误在此处输入图像描述

The error message is quite clear.错误信息非常清楚。 The needed library cannot be found.找不到所需的库。 If you installed PXC 8, then the library is galera4, not galera3.如果您安装了 PXC 8,那么库是 galera4,而不是 galera3。 Make sure you installed all appropriate packages.确保您安装了所有适当的软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM