By TinyCyanCrab
I’m testing the Galera cluster.
The environment is Centos 7.2. DB is MySQL 5.6.
The success message was confirmed using the following instructions.
Starting MySQL… SUCCESS!
But if you check the cluster size, it says 0.
Enter password: ±-------------------±------+ | Variable_name | Value | ±-------------------±------+ | wsrep_cluster_size | 0 | ±-------------------±------+
The cnf file of the initial node I set is as follows.
/etc/my.cnf.d/galera.cnf
[mysqld] binlog_format=ROW default-storage-engine=innodb innodb_autoinc_lock_mode=2 bind-address=0.0.0.0
wsrep_on=ON wsrep_provider=/usr/lib64/galera-3/libgalera_smm.so
wsrep_cluster_name=“test_cluster” wsrep_cluster_address=“gcomm://”
wsrep_sst_method=rsync
wsrep_node_address=“my node_1 ip” wsrep_node_name=“galera1”
I turned off both firewall and selinux.
Please tell me the solution.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @
It’s hard to troubleshoot it like that, quick searches have showed me similar issues which have been resolved like:
!includedir /etc/mysql/mysql.conf.d/Hello,
For MySQL and CentOS 7, I could suggest following the steps from this tutorial here:
https://bobbyiliev.com/blog/galera-cluster-mariadb-10-1-on-centos-7-server
However, as a side note, keep in mind that both MySQL 5.6 and CentOS 7 are both EOL, meaning that they are no longer officially supported and no security updates will be released. So if you are setting this up for a production system, I would advise going for a tech stack that is still supported.
For example, you could set up a Galera Cluster with MariaDB on Ubuntu 20.04 Server as described here:
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.