在错误文件中我有这个。
WSREP:wsrep_load():加载提供程序库'none'
但是在配置文件/etc/mysql/config.d/galera.conf中有这个
[mysqld]
#mysql settings
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
query_cache_size=0
query_cache_type=0
bind-address=0.0.0.0
#galera settings
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_name="pivotrac_cluster"
wsrep_cluster_address="gcomm://192.168.1.113,192.168.1.119,192.168.1.126,192.168.1.129"
wsrep_sst_method=rsync
wsrep_sst_auth=geek:snape99
wsrep_sst_donor='dot129'
wsrep_provider_options=”gcache.size = 5G”
并且文件/usr/lib/galera/libgalera_smm.so存在。
任何想法?
这是日志文件中的相关信息
140926 13:40:52 InnoDB: The InnoDB memory heap is disabled
140926 13:40:52 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140926 13:40:52 InnoDB: Compressed tables use zlib 1.2.8
140926 13:40:52 InnoDB: Using Linux native AIO
140926 13:40:52 InnoDB: Initializing buffer pool, size = 100.0G
140926 13:40:57 InnoDB: Completed initialization of buffer pool
140926 13:40:57 InnoDB: highest supported file format is Barracuda.
140926 13:41:01 InnoDB: Waiting for the background threads to start
140926 13:41:02 Percona XtraDB (http://www.percona.com) 5.5.38-MariaDB-35.2 started; log sequence number 1598129
140926 13:41:02 [Note] Plugin 'FEEDBACK' is disabled.
140926 13:41:02 [Note] Server socket created on IP: '0.0.0.0'.
140926 13:41:02 [Note] Event Scheduler: Loaded 0 events
140926 13:41:02 [Note] WSREP: Read nil XID from storage engines, skipping position init
140926 13:41:02 [Note] WSREP: wsrep_load(): loading provider library 'none'
140926 13:41:02 [Note] mysqld: ready for connections.
Version: '5.5.39-MariaDB-1~trusty-wsrep' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution, wsrep_25.10.r4014
一些笔记
这个服务器是ubuntu 14.04,其他服务器是12.04(我希望一次升级一个OS)
我仍然可以使用root用户名和密码登录mariadb服务器..
希望有人可以帮助我..谢谢所有
答案 0 :(得分:1)
假设您的主要MySQL配置(galera.conf
)有galera.cnf
,则/etc/mysql/my.cnf
应命名为!includedir /etc/mysql/config.d/
,以便MySQL加载它。
答案 1 :(得分:0)
确保文件/usr/lib/galera/libgalera_smm.so存在,因为它位于/usr/lib64/galera/libgalera_smm.so中,适用于x64平台
将这些设置移至/etc/mysql/config.d/server.cnf而不是//etc/mysql/config.d/galera.cnf
希望它有所帮助。