东辰安华知识网 东辰安华知识网

东辰安华知识网
东辰安华知识网是一个专业分享各种生活常识、知识的网站!
文章434741浏览52697400本站已运行9224

updates是什么意思啊(GDR是什么意思)

本篇文章给大家谈谈updates是什么意思啊,以及GDR是什么意思对应的知识点,文章可能有点长,但是希望大家可以阅读完,增长自己的知识,最重要的是希望对各位有所帮助,可以解决了您的问题,不要忘了收藏本站喔。

本文目录

  1. GDR是什么意思
  2. last October前面用什么介词
  3. 电脑硬件自动安装时显示的“Display”是什么意思
  4. mgr是什么意思

GDR是什么意思

GDR是全球存托凭证。GDR在超过一个国家发行,代表一家国外公司的银行证书。这些股票由国际银行的国外分行持有,与国内股票一同交易,通过不同银行分行作全球销售。GDR是非公开市场用以筹集美元或欧元资金的金融工具。

last October前面用什么介词

任何介词都不加。

lastOctober含义为去年十月。其中,last做形容词,含义为上一个、去年的,修饰并限定October十月。二者组合在一起构成副词短语,通常在句子中充当状语,即时间状语。

若去掉last只剩October,则October前只能使用介词in。

此外,last词性多样,可以作形容词,副词,名词或动词,是常见并常用的多义词。

电脑硬件自动安装时显示的“Display”是什么意思

显卡绝对未安装好驱动,建议重新完全的安装一次,如果还没成功,那么就马上拔出来显卡,再插进去让系统发现新硬件,再插光盘完全安装驱动即可。如果以上都不可用,那么要好好的检查您的显卡了,是不是坏掉了,试试吧或者这样看桌面属性,设置->高级->疑难问答->硬件加速->完全。运行dxdiag.exe,打开Display选项卡,可看到3项全部启用了。最后,利用Windowsupdates在WindowsServer2003中安装DirectX9.0a。

mgr是什么意思

MySQLGroupReplication(下简称MGR)准确来说是官方推出的高知可用解决方案,基于原生复制技术,并以插件的方式提供。

1、使用前,关掉防火墙,包括selinux,firewalld,或者MySQL企业版的firewall(如果用了企业版的话)2、两台机器:(4台MySQL实例)192.168.2.219centos-ytt57-13311/3312192.168.2.229centos-ytt57-23311/33123、安装MySQL(两台都装),MySQLShell(任意一台),mysqlrouter(任意一台,官方建议和应用程序装在一个服务器上)yuminstallmysql-community-servermysql-shellmysql-router-community

4、搭建InnoDB-Cluster(两台都装)

1.配置文件如下:shell>vi/etc/my.cnfmaster-info-repository=tablerelay-log-info-repository=tablegtid_mode=ONenforce_gtid_consistency=ONbinlog_checksum=NONElog_slave_updates=ONbinlog_format=ROWtransaction_write_set_extraction=XXHASH642.系统HOSTS配置(两台都配)

shell>vi/etc/hosts

127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4

::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6

192.168.2.219centos-ytt57-2

192.168.2.229centos-ytt57-3

用MySQLcoalesce函数确认下report-host是否设置正确(root@localhost):[(none)]>SELECTcoalesce(@@report_host,@@hostname)asr;+----------------+|r|+----------------+|centos-ytt57-1|+----------------+1rowinset(0.00sec)

3.创建管理员用户搭建GROUPREPLICATION(四个节点都要)

createuserrootidentifiedby'Root@123';grantallon*.*torootwithgrantoption;flushprivileges;

4.MySQLsh连接其中一台节点:

[root@centos-ytt57-1mysql]#mysqlshroot@localhost:3321

5.检查配置正确性:(如果这里不显示OK,把对应的参数加到配置文件重启MySQL再次检查)dba.checkInstanceConfiguration("root@centos-ytt57-2:3311");dba.checkInstanceConfiguration("root@centos-ytt57-2:3312");dba.checkInstanceConfiguration("root@centos-ytt57-3:3311");dba.checkInstanceConfiguration("root@centos-ytt57-3:3312");mysqlsh执行检测

[root@centos-ytt57-1mysql]#mysqlsh--log-level=8root@localhost:3311

MySQLlocalhost:3311sslJS>dba.checkInstanceConfiguration("root@centos-ytt57-2:3311")

{

"status":"ok"

}

6.创建集群,节点1上创建。(结果显示Clustersuccessfullycreated表示成功)

MySQLlocalhost:3311sslJS>varcluster=dba.createCluster('ytt_mgr');

Clustersuccessfullycreated.UseCluster.addInstance()toaddMySQLinstances.

Atleast3instancesareneededfortheclustertobeabletowithstandupto

oneserverfailure.

7.添加节点2,3,4(全部显示OK,表示添加成功)MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-2:3312');MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-3:3311');MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-3:3312');

8.查看拓扑图:(describe简单信息,status详细描述)

MySQLlocalhost:3311sslJS>cluster.describe()

{

"clusterName":"ytt_mgr",

"defaultReplicaSet":{

"name":"default",

"topology":[

{

"address":"centos-ytt57-2:3311",

"label":"centos-ytt57-2:3311",

"role":"HA",

"version":"8.0.17"

},

{

"address":"centos-ytt57-2:3312",

"label":"centos-ytt57-2:3312",

"role":"HA",

"version":"8.0.17"

},

{

"address":"centos-ytt57-3:3311",

"label":"centos-ytt57-3:3311",

"role":"HA",

"version":"8.0.17"

},

{

"address":"centos-ytt57-3:3312",

"label":"centos-ytt57-3:3312",

"role":"HA",

"version":"8.0.17"

}

],

"topologyMode":"Single-Primary"

}

}

MySQLlocalhost:3311sslJS>cluster.status()

"clusterName":"ytt_mgr",

"defaultReplicaSet":{

"name":"default",

"primary":"centos-ytt57-2:3311",

"ssl":"REQUIRED",

"status":"OK",

"statusText":"ClusterisONLINEandcantolerateuptoONEfailure.",

"topology":{

"centos-ytt57-2:3311":{

"address":"centos-ytt57-2:3311",

"mode":"R/W",

"readReplicas":{},

"role":"HA",

"status":"ONLINE",

"version":"8.0.17"

},

"centos-ytt57-2:3312":{

"address":"centos-ytt57-2:3312",

"mode":"R/O",

"readReplicas":{},

"role":"HA",

"status":"ONLINE",

"version":"8.0.17"

},

"centos-ytt57-3:3311":{

"address":"centos-ytt57-3:3311",

"mode":"R/O",

"readReplicas":{},

"role":"HA",

"status":"ONLINE",

"version":"8.0.17"

},

"centos-ytt57-3:3312":{

"address":"centos-ytt57-3:3312",

"mode":"R/O",

"readReplicas":{},

"role":"HA",

"status":"ONLINE",

"version":"8.0.17"

}

},

"topologyMode":"Single-Primary"

},

"groupInformationSourceMember":"centos-ytt57-2:3311"

9.简单测试下数据是否同步

(root@localhost):[(none)]>createdatabaseytt;

QueryOK,1rowaffected(0.03sec)

(root@localhost):[(none)]>useytt;

Databasechanged

(root@localhost):[ytt]>createtablep1(idintprimarykey,log_timedatetime);

QueryOK,0rowsaffected(0.08sec)

(root@localhost):[ytt]>insertintop1values(1,now());

QueryOK,1rowaffected(0.04sec)

(root@localhost):[ytt]>showmasterstatus;

+---------------+----------+--------------+------------------+-------------------------------------------+

|File|Position|Binlog_Do_DB|Binlog_Ignore_DB|Executed_Gtid_Set|

+---------------+----------+--------------+------------------+-------------------------------------------+

|mysql0.000001|25496|||6c7bb9db-b759-11e9-a9c0-0800276cf0fc:1-41|

+---------------+----------+--------------+------------------+-------------------------------------------+

1rowinset(0.00sec)

查看其他三个节点

(root@localhost):[ytt]>showtables;

+---------------+

|Tables_in_ytt|

+---------------+

|p1|

+---------------+

1rowinset(0.00sec)

(root@localhost):[ytt]>select*fromp1;

+----+---------------------+

|id|log_time|

+----+---------------------+

|1|2019-08-0516:44:20|

+----+---------------------+

1rowinset(0.00sec)

停掉主节点:[root@centos-ytt57-2mysql0]#systemctlstopmysqld@0

现在查看,主节点已经变为本机3312节点"centos-ytt57-2:3312":{"address":"centos-ytt57-2:3312","mode":"R/W","readReplicas":{},"role":"HA","status":"ONLINE"}

10.报错处理

错误日志里显示2019-08-05T09:01:35.125591Z0[ERROR]Plugingroup_replicationreported:'Thegroupnameoptionismandatory'2019-08-05T09:01:35.125622Z0[ERROR]Plugingroup_replicationreported:'UnabletostartGroupReplicationonboot'

同时用cluster.rescan()扫描,发现Theinstance'centos-ytt57-2:3311'isnolongerpartoftheReplicaSet.

重新加入此节点到集群:cluster.rejoinInstance('centos-ytt57-2:3311')

再次执行cluster.status()查看集群状态:"status":"OK",11.移除和加入cluster.removeInstance("centos-ytt57-3:3312");Theinstance'centos-ytt57-3:3312'wassuccessfullyremovedfromthecluster.cluster.addInstance("centos-ytt57-3:3312");Theinstance'centos-ytt57-3:3312'wassuccessfullyaddedtothecluster.

12.用mysqlrouter生成连接MGR相关信息。涉及到两个用户:--user=mysqlrouter是使用mysqlrouter的系统用户自动创建的MySQL用户是用来与MGR通信的用户。如果想查看这个用户的用户名以及密码,就加上--force-password-validation,不过一般也没有必要查看。

updates是什么意思啊和GDR是什么意思的问题分享结束啦,以上的文章解决了您的问题吗?欢迎您下次再来哦!

赞一下
东辰安华知识网
上一篇: 计算机$是什么意思(计算机上)
下一篇: 泼的意思是什么意思(泼是什么意思)
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏