当前位置:1z0-883题库

问题:

[单选]

A simple master-to-slave replication is currently being used. The following information is extracted from the SHOW SLAVE STATUS output:
Last_SQL_Error: Error 'Duplicate entry '8' for key 'PRIMARY' ' on query.
Default database: 'mydb'. Query: 'insert into mytable VALUES ('8' , 'George') ' Skip_Counter: 0 Retrieved _Gtid_Set: 38f32e23480a7-32a1-c323f78067fd37821: 1-8 Auto _Position: 1
You execute a "SHOW CREATE TABLE mytable" on the slave: CREATE TABLE 'mytable' ( 'ID' int(11) NOT NULL
DEFAULT '0', 'name' char(10) DEFAULT NULL, PRIMARY KEY ('ID') )
The table mytable on the slave contains the following:

You have issued a STOP SLAVE command. One or more statements are required before you can issue a START SLAVE command to resolve the duplicate key error. Which statement should be used?()

A . SET GTID_NEXT="CONSISTENCY"; BEGIN; COMMIT; SET GTID_NEXT="AUTOMATIC"
B . SET GLOBAL enforce_gtid_consistency=ON
C . SET GTID_EXECUTED="38f32e23480a7-32a1-c323f78067fd37821 : 9"
D . SET GTID_NEXT="38f32e23480a7-32a1-c323f78067fd37821 : 9"; BEGIN; COMMIT; SET GTID_NEXT="AUTOMATIC"
E . SET GLOBAL SQL_SKIP_SLAVE_COUNTER=1

Given: What is the result?() Compilation succeeds.。 Compilation fails due to multiple errors.。 Compilation fails due to an error only on line 20.。 Compilation fails due to an error only on line 21.。 Compilation fails due to an error only on line 22.。 自建机房不设窗户;租赁机房如有窗户,要求用()封堵。 木板。 塑料板。 遮阳板。 防火硅酸钙板。 增值税是一种() 比例税。 累进税。 价内税。 定额税。 对IT成本模型下列哪项通常不作为输入的主要成本类型() 场地。 转移。 软件。 服务。 角色游戏与其他形式的游戏相比较,真实地表现出两个最基本的特点:特殊的想象活动和() 高度的独立自主性。 假设性。 目的性。 虚拟性。

A simple master-to-slave replication is currently being used. The following information is extracted from the SHOW SLAVE STATUS output:
Last_SQL_Error: Error 'Duplicate entry '8' for key 'PRIMARY' ' on query.
Default database: 'mydb'. Query: 'insert into mytable VALUES ('8' , 'George') ' Skip_Counter: 0 Retrieved _Gtid_Set: 38f32e23480a7-32a1-c323f78067fd37821: 1-8 Auto _Position: 1
You execute a "SHOW CREATE TABLE mytable" on the slave: CREATE TABLE 'mytable' ( 'ID' int(11) NOT NULL
DEFAULT '0', 'name' char(10) DEFAULT NULL, PRIMARY KEY ('ID') )
The table mytable on the slave contains the following:

You have issued a STOP SLAVE command. One or more statements are required before you can issue a START SLAVE command to resolve the duplicate key error. Which statement should be used?()

参考答案:

  参考解析

本题暂无解析

在线 客服