0

在错误文件中我有这个。

WSREP:wsrep_load():加载提供程序库“无”

但在配置文件 /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(我希望一次升级他们的操作系统)

我仍然可以使用root用户名和密码登录mariadb服务器..

希望有人可以帮助我..谢谢大家

4

2 回答 2

1

假设您galera.confgalera.cnf主 MySQL 配置 ( /etc/mysql/my.cnf) 具有!includedir /etc/mysql/config.d/.

于 2015-01-14T23:32:02.867 回答
0

我昨天遇到了同样的问题。有两个地方需要检查:

  1. 确保文件 /usr/lib/galera/libgalera_smm.so 存在,因为它将位于 x64 平台的 /usr/lib64/galera/libgalera_smm.so 中

  2. 将这些设置移动到 /etc/mysql/config.d/server.cnf 而不是 //etc/mysql/config.d/galera.cnf

希望能帮助到你。

于 2014-11-20T05:48:34.927 回答