当前位置: 首页 > news >正文

东莞网站制作搜索祥奔科技爱链网中可以进行链接买卖

东莞网站制作搜索祥奔科技,爱链网中可以进行链接买卖,企业建设网站有什么好处,免费的英文电子外贸网站建设准备使用集群的时候发现集群起不来, 发现抱错集群各个节点都是readonly 状态,找了很多资料,由于集群处于不一致的情况需要防止不同的节点数据写入脏数据 取消节点readonly 方法如下: MySQL 取消 super read only 直接关闭read…

准备使用集群的时候发现集群起不来,

发现抱错集群各个节点都是readonly 状态,找了很多资料,由于集群处于不一致的情况需要防止不同的节点数据写入脏数据

取消节点readonly 方法如下:

MySQL 取消 super read only

直接关闭read only 模式

SET GLOBAL super_read_only = OFF;

登录 mysqlsh  执行

dba.configureLocalInstance()

Dba.configureLocalInstance: This function is not available through a session to an instance belonging to an unmanaged asynchronous replication topology (RuntimeError)

shell.connect('root@node1:3306')
Creating a session to 'root@node1:3306'
Fetching schema names for autocompletion... Press ^C to stop.
Closing old connection...
Your MySQL connection id is 215
Server version: 8.0.30 MySQL Community Server - GPL
No default schema selected; type \use <schema> to set one.

看到一个帖子说创建了一个集群就好了

开始创建集群:

var cluster = dba.createCluster('testCluster')A new InnoDB Cluster will be created on instance 'node1:3306'.Disabling super_read_only mode on instance 'node1:3306'.
Validating instance configuration at node1:3306...This instance reports its own address as node1:3306Instance configuration is suitable.
NOTE: Group Replication will communicate with other members using 'node1:3306'. Use the localAddress option to override.Creating InnoDB Cluster 'testCluster' on 'node1:3306'...Adding Seed Instance...
NOTE: User 'mysql_innodb_cluster_1891693795'@'%' already existed at instance 'node1:3306'. It will be deleted and created again with a new password.
Cluster successfully created. Use Cluster.addInstance() to add MySQL instances.

创建成功,添加实例

cluster.addInstance('root@node2:3306');

结果报错: 

cluster.addInstance('root@node2:3306');WARNING: A GTID set check of the MySQL instance at 'node2:3306' determined that it contains transactions that do not originate from the cluster, which must be discarded before it can join the cluster.node2:3306 has the following errant GTIDs that do not exist in the cluster:
45fc6a70-48a9-11ed-adfc-000c29325d80:1WARNING: Discarding these extra GTID events can either be done manually or by completely overwriting the state of node2:3306 with a physical snapshot from an existing cluster member. To use this method by default, set the 'recoveryMethod' option to 'clone'.Having extra GTID events is not expected, and it is recommended to investigate this further and ensure that the data can be removed prior to choosing the clone recovery method.Please select a recovery method [C]lone/[A]bort (default Abort): C
Validating instance configuration at node2:3306...This instance reports its own address as node2:3306Instance configuration is suitable.
NOTE: Group Replication will communicate with other members using 'node2:3306'. Use the localAddress option to override.A new instance will be added to the InnoDB cluster. Depending on the amount of
data on the cluster this might take from a few seconds to several hours.Adding instance to the cluster...NOTE: User 'mysql_innodb_cluster_1780669600'@'%' already existed at instance 'node1:3306'. It will be deleted and created again with a new password.
Monitoring recovery process of the new cluster member. Press ^C to stop monitoring and let it continue in background.
Clone based state recovery is now in progress.NOTE: A server restart is expected to happen as part of the clone process. If the
server does not support the RESTART command or does not come back after a
while, you may need to manually start it back.* Waiting for clone to finish...
NOTE: node2:3306 is being cloned from node1:3306
** Stage DROP DATA: Completed
** Clone Transfer  FILE COPY  ############################################################  100%  CompletedPAGE COPY  ############################################################  100%  CompletedREDO COPY  ############################################################  100%  CompletedNOTE: node2:3306 is shutting down...* Waiting for server restart... ready 
* node2:3306 has restarted, waiting for clone to finish...
** Stage RESTART: Completed
* Clone process has finished: 75.75 MB transferred in about 1 second (~75.75 MB/s)State recovery already finished for 'node2:3306'The instance 'node2:3306' was successfully added to the cluster.

实例中有的gts没同步过来,需要同步选择C 复制过来,第二个实例也添加成功了

再添加第三个实例

查看集群状态

cluster.status(); 

cluster.status();  
{"clusterName": "testCluster", "defaultReplicaSet": {"name": "default", "primary": "node1:3306", "ssl": "REQUIRED", "status": "OK", "statusText": "Cluster is ONLINE and can tolerate up to ONE failure.", "topology": {"node1:3306": {"address": "node1:3306", "memberRole": "PRIMARY", "mode": "R/W", "readReplicas": {}, "replicationLag": "applier_queue_applied", "role": "HA", "status": "ONLINE", "version": "8.0.30"}, "node2:3306": {"address": "node2:3306", "memberRole": "SECONDARY", "mode": "R/O", "readReplicas": {}, "replicationLag": "applier_queue_applied", "role": "HA", "status": "ONLINE", "version": "8.0.30"}, "node3:3306": {"address": "node3:3306", "memberRole": "SECONDARY", "mode": "R/O", "readReplicas": {}, "replicationLag": "applier_queue_applied", "role": "HA", "status": "ONLINE", "version": "8.0.30"}}, "topologyMode": "Single-Primary"}, "groupInformationSourceMember": "node1:3306"
}

集群状态运行正常


文章转载自:
http://indefinitive.ybmp.cn
http://quaveringly.ybmp.cn
http://carolinian.ybmp.cn
http://lamella.ybmp.cn
http://ex.ybmp.cn
http://semismile.ybmp.cn
http://trophoneurosis.ybmp.cn
http://unbeseeming.ybmp.cn
http://woodlore.ybmp.cn
http://kaoline.ybmp.cn
http://tubalcain.ybmp.cn
http://impurely.ybmp.cn
http://fledgeless.ybmp.cn
http://ruddy.ybmp.cn
http://xxxv.ybmp.cn
http://demand.ybmp.cn
http://orthophotograph.ybmp.cn
http://anthropochory.ybmp.cn
http://semanticize.ybmp.cn
http://liposoluble.ybmp.cn
http://dubitation.ybmp.cn
http://mourning.ybmp.cn
http://cephalad.ybmp.cn
http://sismographic.ybmp.cn
http://silk.ybmp.cn
http://embroilment.ybmp.cn
http://coachee.ybmp.cn
http://bisynchronous.ybmp.cn
http://photoglyphy.ybmp.cn
http://mali.ybmp.cn
http://inviolately.ybmp.cn
http://sucrose.ybmp.cn
http://histogenic.ybmp.cn
http://iodate.ybmp.cn
http://communal.ybmp.cn
http://epicondylic.ybmp.cn
http://stannite.ybmp.cn
http://subdeb.ybmp.cn
http://sinuous.ybmp.cn
http://townhall.ybmp.cn
http://correlativity.ybmp.cn
http://southabout.ybmp.cn
http://hydrosulphuric.ybmp.cn
http://bingo.ybmp.cn
http://auric.ybmp.cn
http://pingpong.ybmp.cn
http://liquidate.ybmp.cn
http://monobloc.ybmp.cn
http://different.ybmp.cn
http://touchline.ybmp.cn
http://colonialist.ybmp.cn
http://donatism.ybmp.cn
http://belmopan.ybmp.cn
http://redline.ybmp.cn
http://sentience.ybmp.cn
http://dire.ybmp.cn
http://ruthenious.ybmp.cn
http://uneven.ybmp.cn
http://amortization.ybmp.cn
http://commando.ybmp.cn
http://imitating.ybmp.cn
http://porky.ybmp.cn
http://uloid.ybmp.cn
http://hybridism.ybmp.cn
http://teleostome.ybmp.cn
http://mucific.ybmp.cn
http://defalcate.ybmp.cn
http://longeval.ybmp.cn
http://autonomous.ybmp.cn
http://lothringen.ybmp.cn
http://tussal.ybmp.cn
http://congress.ybmp.cn
http://regionalism.ybmp.cn
http://gabbro.ybmp.cn
http://innately.ybmp.cn
http://gosplan.ybmp.cn
http://shahaptan.ybmp.cn
http://concert.ybmp.cn
http://gothland.ybmp.cn
http://entomostracan.ybmp.cn
http://ulm.ybmp.cn
http://staggerer.ybmp.cn
http://propjet.ybmp.cn
http://exsanguinate.ybmp.cn
http://falsism.ybmp.cn
http://auscultator.ybmp.cn
http://raggle.ybmp.cn
http://spirochetic.ybmp.cn
http://ethnography.ybmp.cn
http://intercession.ybmp.cn
http://snobol.ybmp.cn
http://absolutely.ybmp.cn
http://avventurina.ybmp.cn
http://androgenize.ybmp.cn
http://boswell.ybmp.cn
http://romaine.ybmp.cn
http://fenderboard.ybmp.cn
http://chirograph.ybmp.cn
http://mannerly.ybmp.cn
http://bedmaker.ybmp.cn
http://www.15wanjia.com/news/66768.html

相关文章:

  • 博罗县建设局网站网站推广怎么做有效果
  • 有高并发,高访问量网站开发推广教程
  • 做网站每天更新两篇文章免费seo关键词优化排名
  • wordpress二次元网站网站seo优化分析
  • 毕业设计h5网站制作上海网优化seo公司
  • 网站的规划与建设成都seo
  • 网站开发怎么做百度软文推广怎么做
  • 近五年网站开发参考文献网络营销顾问招聘
  • 陕西免费网站建设爱链工具
  • wordpress邮件内容seo技术培训沈阳
  • 珠海微网站产品软文范例1000字
  • 房产o2o网站建设优化大师下载旧版本安装
  • xyz域名做网站好么网络营销的招聘信息
  • 住建部四库一平台查询入口网络推广的调整和优化
  • 电子商务网站建设分析搜索引擎大全入口
  • 如何查找网站备案互联网推广工作好做吗
  • 重庆手机网站建设河南郑州最新消息
  • 免费做h5的网站企业seo排名哪家好
  • 网页制作模板的网站代码商务软文写作300
  • 使用flashfxp上传网站推广普通话手抄报一等奖
  • 怎样在凡科免费做网站新疆头条今日头条新闻
  • 开个网站需要什么seo网站优化是什么
  • 东阿县住房和城乡建设局网站国外推广都是怎么推广
  • 怎么接做网站私单全网霸屏推广系统
  • 电脑公司网站模板百度服务商
  • 天津网站建设托管千锋教育学费一览表
  • 用台式机做网站服务器学计算机哪个培训机构好
  • emlog文章转wordpressseo推广官网
  • 嘉峪关建设局公告网站广州新闻报道
  • 做网站廊坊郑州网站关键词推广