因為斷電 或者 其他瞎折騰 導致:
從節點顯示RECOVRING
查看錯誤日志顯示:
Slave SQL for channel 'group_replication_recovery': Error 'Can't create database 'test'; database exists' on query. Default database: 'test'. Query: 'create database test', Error_code: 1007
意思很明顯,test 資料庫已經存在了 無法創建 test 資料庫,
解決辦法:
停止組復制服務;
stop group_replication;
修改從節點資料庫的只讀權限
set global super_read_only=0;
洗掉資料庫
drop database test;
修改從節點資料庫只讀權限
set global super_read_only=1;
開啟組復制服務
set global group_replication_allow_local_disjoint_gtids_join=ON;
start group_replication;
為了防止在MySQL的節點在啟動時出現此問題,可以修改組態檔引數:
loose-group_replication_allow_local_disjoint_gtids_join=on
一開始配置的時候我這個設定的是 off 也是從網上看的,不太清楚具體為啥,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/51427.html
標籤:其他
下一篇:什么是知識
