0
我建立一个2节点MariaDB的加莱拉簇(36年5月5日),两者均节点1和节点可以看到的变化,如果创建数据库/表格,甚至插入1行到所创建的表中,但如果导入CSV文件(300,000多行,用“LOAD DATA INFILE ...”),从节点1所创建的表,节点2将不会看到任何变化。MariaDB的加莱拉Cluster数据同步
为什么节点2是不同步的,而从CSV文件导入行?
以下是下的/etc/my.cnf节点1的配置文件,节点2的配置仅仅是交换机的IP地址
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
[mariadb]
wsrep_cluster_address=gcomm://172.16.10.01
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_sst_auth=root:password
wsrep_node_address=172.16.10.02
log-error=/var/log/mysql.log
log_slave_updates=ON
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d