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

相关推荐
金桔数科4 小时前
在MySQL Shell里 重启MySQL 8.4实例
mysql
她和夏天一样热4 小时前
【Java面试题04】MySQL 篇
java·mysql·adb
曹天骄4 小时前
设计并实现一个基于 Java + Spring Boot + MySQL 的通用多租户权限系统
java·spring boot·mysql
一个天蝎座 白勺 程序猿5 小时前
Python爬虫(9)Python数据存储实战:基于pymysql的MySQL数据库操作详解
数据库·python·mysql
jiaoxingk6 小时前
有关爬虫中数据库的封装——单线程爬虫
数据库·爬虫·python·mysql
Suckerbin6 小时前
第十三章-PHP MySQL扩展
mysql·安全·php
小可爱的大笨蛋8 小时前
Spring AI Alibaba - MCP连接 MySQL
人工智能·mysql·spring·mcp
柳如烟@8 小时前
Hadoop伪分布式模式搭建全攻略:从环境配置到实战测试
大数据·hadoop·分布式·mysql
小白教程10 小时前
解读和分析mysql性能数据时,如何确定性能瓶颈的具体位置?
数据库·mysql·mysql教程·mysql优化教程
LaughingZhu10 小时前
PH热榜 | 2025-04-26
前端·数据库·人工智能·mysql·开源