How to setup mysql galera cluster on ubuntu18.04

setup mysql on all 3 vm

Prepare 3 vm

Install mysql on all 3 vm

Disable apparmor and remove mysql definition loaded in kernel

prepare configuration on all 3 node

Ufw config on 3 node

Start first node — 192.168.115.128

Join second node 192.168.115.129 into cluster

Join third node 192.168.115.130 into cluster

Configure Start on boot on each node

Test

Login to first_node 192.168.115.128

Login on second_node 192.168.115.129

Login on third node 192.168.115.130

Login on first node (192.168.115.128) again

Software Developer/Technical Writer&Author/body builder