This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Globals | |
[maxscale] | |
threads=1 | |
# Servers | |
[server1] | |
type=server | |
address=176.12.12.50 | |
port=3306 | |
protocol=MySQLBackend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[galera] | |
wsrep_on=ON | |
wsrep_provider=/usr/lib64/galera/libgalera_smm.so | |
wsrep_cluster_address=gcomm://176.12.12.50,176.12.12.51,176.12.12.52 | |
binlog_format=row | |
default_storage_engine=InnoDB | |
innodb_autoinc_lock_mode=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------------------+-------+ | |
| Variable_name | Value | | |
+--------------------+-------+ | |
| wsrep_cluster_size | 3 | | |
+--------------------+-------+ | |
1 row in set (0.00 sec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'galer_root'@'%' IDENTIFIED BY 'my_pw'; | |
GRANT USAGE ON *.* TO 'galera_root'@'$%' IDENTIFIED BY 'my_pw'; | |
GRANT ALL privileges ON *.* TO '$galera_root'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; |