mysql8.0英文考试第1-5题

Q1. Examine this command, which executes successfully:

mysqlbackup --user=dba --password --port=3306 --with-timestamp --backup-dir=/export/backups backup-and-apply-log

Which statement is true?

A)The backup accesses the MySQL server files by using a pre-existing connection.

B)The database server is put into a read-only state for the duration of the backup.

C)An offline backup of InnoDB tables is taken.

D)The backup can be impacted when DDL operations run during the backup.

详解:

参见《MySQL8.0 for Database Administrators studentGuide 2》243页

While the non-InnoDB backup runs:

--- Prior to version 8.0.16, the database cannot be modified

--- As of version 8.0.16, only non-InnoDB tables cannot be modified and InnoDB tables allow DML operations but not DDL operations

Answer:D

Q2.You reconfigure and start a slave that was not replicating for several days.

The configuration file and CHANGE MASTER command are correct. Examine the GTID information from both master and slave:

Master:

Gtids_executed: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-321,

bbbbbbbb-bbbb-bbbb-bbbbbbbbbbbb:1-50,

Cccccccc-cccc-cccc-cccc-cccccccccccc:1234-1237

Gtids_purged: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-100,

bbbbbbbb-bbbb-bbbb-bbbbbbbbbbbb:1-10,

cccccccc-cccc-cccc-cccc-cccccccccccc:1234-1237

Slave:

Gtids_executed: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-160,

cccccccc-cccc-cccc-cccc-cccccccccccc:1234-1237

Gtids_purged: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-70,

cccccccc-cccc-cccc-cccc-cccccccccccc:1234-1237

Which statement is true?

A)Replication will fail because the master does not have the required transaction with bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb GTIDs in its binary logs.

B)Replication will fail because the master has already purged transactions with cccccccc-cccc-cccc-cccc-cccccccccc GTIDs.

C)Replication will fail because of inconsistent numbers in cccccccc-cccc-cccc-cccc-cccccccccccc GTIDs.

D)Replication will fail because the slave has purged more aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa transactions than the master.

F)Replication will work.

Answer:A

相关推荐
艾莉丝努力练剑14 分钟前
【Linux进程间通信:共享内存】为什么共享内存的 key 值由用户设置
java·linux·运维·服务器·开发语言·数据库·mysql
天若有情67323 分钟前
【实战】从零开发企业级 B 端风格字符串值管理系统(Python+MySQL)
开发语言·python·mysql·企业级应用·b端应用
m0_635647481 小时前
Qt开发与MySQL数据库教程(二)——MySQL常用命令以及示例
java·开发语言·数据库·mysql
予枫的编程笔记1 小时前
【面试专栏 | MySQL】MySQL事务底层实现拆解:Redo/Undo Log+锁+MVCC,一文讲透ACID
mysql·redo log·mvcc·数据库锁·undo log·事务原理·面试干货
程序员榴莲1 小时前
MySQL (一):MySQL的安装与启动
数据库·mysql
xuboyok22 小时前
MySQL中ON DUPLICATE KEY UPDATE的介绍与使用、批量更新、存在即更新不存在则插入
android·数据库·mysql
倔强的石头1062 小时前
MySQL 兼容性深度解析:从内核级优化到“零修改”迁移工程实践
数据库·mysql·adb·kingbase
V1ncent Chen2 小时前
从零学SQL 03 Windows环境安装MySQL(图文版)
数据库·windows·sql·mysql·数据分析
yatum_20143 小时前
VirtualBox 集群环境下 MySQL 5.7 完整安装教程(master 服务端 + slave 客户端)
linux·mysql
猿月亮3 小时前
MySQL5.7安装图文详细步骤(保姆级教程)-mysql5.7下载安装
mysql·adb