MGR自增序列參數(shù)設(shè)置步驟-創(chuàng)新互聯(lián)

一、官網(wǎng)說明
When Group Replication is started on a server, the value of auto_increment_increment is changed to the value of group_replication_auto_increment_increment, which defaults to 7, and the value of auto_increment_offset is changed to the server ID. The changes are reverted when Group Replication is stopped. These settings avoid the selection of duplicate auto-increment values for writes on group members, which causes rollback of transactions. The default auto increment value of 7 for Group Replication represents a balance between the number of usable values and the permitted maximum size of a replication group (9 members).

創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),夏縣企業(yè)網(wǎng)站建設(shè),夏縣品牌網(wǎng)站建設(shè),網(wǎng)站定制,夏縣網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,夏縣網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。

The changes are only made and reverted if auto_increment_increment and auto_increment_offset each have their default value of 1. If their values have already been modified from the default, Group Replication does not alter them. From MySQL 8.0, the system variables are also not modified when Group Replication is in single-primary mode, where only one server writes.

敲黑板,劃重點,在MySQL8.0的版本中,組復(fù)制在單主模式下(只有一個寫服務(wù)器),系統(tǒng)變量(自增序列參數(shù))是不會自動修改的。這是新版本中增加的一段話,我也是在測試中發(fā)現(xiàn)了了這個問題,在官網(wǎng)中得到了證實。知識就是知識或者別人告訴你,或者你自己找答案,找答案的過程是很有意思的。

二、驗證過程
1、系統(tǒng)默認(rèn)參數(shù)
MGR自增序列參數(shù)設(shè)置步驟

2、自增序列表,自增是按照默認(rèn)參數(shù)自增的,并沒有修改
MGR自增序列參數(shù)設(shè)置步驟

三、建議
1、建議大家還是用MGR中的單主模式
2、要對你要修改的每一個參數(shù)了如指掌,不然就不要改動。
3、紙上得來終覺淺,多做測試和實驗也要多分享。

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

新聞標(biāo)題:MGR自增序列參數(shù)設(shè)置步驟-創(chuàng)新互聯(lián)
鏈接URL:http://muchs.cn/article18/dcpigp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護、網(wǎng)站策劃、微信小程序、App設(shè)計、網(wǎng)站排名、ChatGPT

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)