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

相关推荐
我叫黑大帅6 小时前
MySQL 并发插入竞态问题:原子写入实践指南
后端·mysql·面试
我会尽全力 乐观而坚强7 小时前
MySQL零基础入门(二)
数据库·mysql·adb
龙石数据10 小时前
MySQL 全量同步到 Hive 怎么做?三步配置教程
数据库·hive·mysql·数据治理·数据中台
白露与泡影14 小时前
慢 SQL 不一定是 SQL 慢:一次 MySQL 连接池耗尽的故障定位
数据库·sql·mysql
还是鼠鼠16 小时前
AI掘金头条新闻系统 (Toutiao News)-缓存相关推荐新闻
后端·python·mysql·fastapi·web
宠友信息17 小时前
Redis 内容社区源码架构优化与即时通讯数据一致性处理
spring boot·后端·websocket·mysql·uni-app
霸道流氓气质18 小时前
Kiro 配置 MySQL MCP Server 通用教程
数据库·mysql·adb·mcp·kiro
灯澜忆梦19 小时前
【MySQL1】| DDL 数据定义语言
数据库·sql·mysql
七夜zippoe20 小时前
OpenClaw 数据加密:敏感信息保护的完整方案
数据库·mysql·php·openclaw·敏感保护
万亿少女的梦16820 小时前
基于Node.js和Express的旅游信息管理平台设计与开发
mysql·node.js·express·系统设计·旅游信息管理