mysql5.7组复制_mysql 5.7.5组复制配置问题

我想尝试通过corosync进行mysql 5.7.5组复制 . 并且corosync正常运行 .

当第二个节点启动gcs_replication时,我们从mysql服务器端获取了日志信息 .

[ERROR] Failed to open the relay log './gcs_recovery.000001' (relay_log_pos 4).

[ERROR] Could not find target log file mentioned in relay log info in the index file './gcs_recovery.index' during relay log initialization.

[ERROR] Plugin gcs_replication_plugin reported: '[Recovery:] Failed to setup the donor connection (relay log) metadata container.'

[ERROR] Plugin gcs_replication_plugin reported: '[Recovery:] Error when configuring the connection to the donor.'

[Note] Plugin gcs_replication_plugin reported: '[Recovery:] Retrying connection with another donor. Attempt 1/1'

[ERROR] Failed to open the relay log './gcs_recovery.000001' (relay_log_pos 4).

[ERROR] Could not find target log file mentioned in relay log info in the index file './gcs_recovery.index' during relay log initialization.

[ERROR] Plugin gcs_replication_plugin reported: '[Recovery:] Failed to setup the donor connection (relay log) metadata container.'

[ERROR] Plugin gcs_replication_plugin reported: '[Recovery:] Error when configuring the connection to the donor.'

[ERROR] Plugin gcs_replication_plugin reported: '[Recovery:] Maximum number of retries when trying to connect to a donor reached. Aborting recovery.'

2015-02-17T18:39:25.119836Z 0 [Note] Plugin gcs_replication_plugin reported: '[Recovery:] Marking view change with view_id 13'

文章说,"By default, these settings are configured to use “root” with no associated password. "这是否意味着客户端应该没有密码登录?但是当我使用 ./bin/mysql -u root -h 127.0.0.1 -P 13001 --prompt='server1>' 登录客户端时,它显示 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ,所以我添加了"-p" .

类似的问题,当我启动服务器时,它显示 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! ,所以我添加"-u root"

我不知道天气这些修改是导致配置失败的原因 . 有没有人有任何mysql-group-replication的经验来解决这个问题?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值