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

相关推荐
zxcvb1532 小时前
MySQL三种备份方式:原理、优缺点与实操选型指南
数据库·mysql
开开心心就好2 小时前
游戏安装报错缺环境?运行库整合包补上
java·mysql·游戏·pdf·ocr·音视频·lua
Resean02234 小时前
MySQL 系列(03):SQL 是怎么被执行的——解析器、优化器与执行器
android·sql·mysql
开开心心就好5 小时前
重复图片查找工具,拖入文件夹就开搜
java·mysql·pdf·ocr·vim·音视频·emacs
stormsha5 小时前
MySQL 起不来只报 `Failed to set datadir`:真凶是 my.ini 里的四个字符
数据库·后端·mysql
stormsha5 小时前
`Connection is not available, request timed out after 30000ms`:不是数据库慢,是池子空了
java·后端·mysql
冰暮流星6 小时前
mysql之触发器
android·数据库·mysql
斯内普吖7 小时前
(开源)校园资料分享平台实战指南 基于 Node.js + Express + Vue + MySQL
vue.js·mysql·开源·node.js·express
qq_张文8 小时前
mysql 主从同步
数据库·mysql
普通人68 小时前
MySQL 特殊场景启动命令完全指南(8.0 / 5.7 差异全标注)
数据库·mysql·adb