mysql error 3092_MySQL5.7集群(MGR)启动报ERROR 3092 (HY000)

MySQL5.7版本MGR启动时报:

ERROR 3092 (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.

查看告警日志:

2020-03-04T07:48:58.797180Z 574478 [Warning] Plugin group_replication reported: '[GCS] Automatically adding IPv4 localhost address to the whitelist. It is mandatory that it is

added.'2020-03-04T07:48:58.844857Z 574714 [ERROR] Slave SQL for channel 'group_replication_applier': Error 'This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its d

eclaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)' on query. Default database: ''. Query: 'CREATE DEFINER=`root`@`192.168.187.%` FUNCTION `GetDistance`(`lat1` float,`lng1` float,`lat2` float,`lng2` float) RETURNS floatbegin

DECLARE earth_padius float DEFAULT 6378.137;

DECLARE radLat1      float DEFAULT 0;

DECLARE radLat2      float DEFAULT 0;

DECLARE a            float DEFAULT 0;

DECLARE b            float DEFAULT 0;

DECLARE s            float DEFAULT 0;

set radLat1 = Radian(lat1);

set radLat2 = Radian(lat2);

set a = radLat1 - radLat2;

set b = Radian(lng1) - Radian(lng2);

set s = 2 *

Asin(Sqrt(power(sin(a / 2), 2) 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值