Choose two.
Which two statements are true about the mysql_config_editor program?
□ A) It provides an interface to change my.cnf files.
□ B) It can move datadir to a new location.
□ C) It will use [client] options by default unless you provide --login-path.
□ D) It can be used to create and edit SSL certificates and log locations.
□ E) It manages the configuration of user privileges for accessing the server.
□ F) It manages the configuration of the MySQL Firewall feature.
□ G) It manages the configuration of client programs.
选择两项。
关于mysql_config_editor程序,以下哪两个陈述是正确的?
□ A) 它提供了一个更改my.cnf文件的接口。
□ B) 它可以将datadir移动到新位置。
□ C) 除非提供–login-path,否则它将默认使用[client]选项。
□ D) 它可用于创建和编辑SSL证书以及日志位置。
□ E) 它管理访问服务器的用户权限配置。
□ F) 它管理MySQL防火墙功能的配置。
□ G) 它管理客户端程序的配置。
mysql_config_editor
并不直接提供更改 my.cnf
文件的接口 ,A错误。datadir
位置的功能 ,B错误。mysql_config_editor
默认会使用 [client]
选项,除非指定 --login-path
来使用特定的登录路径配置 ,C正确。mysql_config_editor
不用于管理MySQL防火墙功能的配置 ,F错误。mysql_config_editor
可以管理客户端程序的配置,比如存储连接相关的配置信息 ,G正确。所以答案是C、G。
mysql_config_editor
程序的主要功能和作用范围,如管理客户端配置、使用默认选项规则等,明确其不能执行的操作(如更改配置文件、管理权限等)。mysql_config_editor
在其中的应用和重要性。Choose the best answer.
You plan to take daily full backups, which include the ndbinfo and sys (internal) databases. Which command will back up the databases in parallel?
○ A) mysqldump–all-databases>full-backup-$(date +%Y%m%d).sql
○ B) mysqlpump --include-databases=% > full-backup-$(date +%Y%m%d).sql
○ C) mysqlpump --all-databases > full-backup-$(date +%Y%m%d).sql
○ D) mysqldump --single-transaction > full-backup-$(date +%Y%m%d).sql
选择最佳答案。
你计划进行每日全量备份,备份内容包括ndbinfo和sys(内部)数据库。哪个命令可以并行备份数据库?
○ A) mysqldump --all-databases > full-backup-$(date +%Y%m%d).sql
○ B) mysqlpump --include-databases=% > full-backup-$(date +%Y%m%d).sql
○ C) mysqlpump --all-databases > full-backup-$(date +%Y%m%d).sql
○ D) mysqldump --single-transaction > full-backup-$(date +%Y%m%d).sql
mysqldump
是顺序执行备份操作,不会并行备份数据库 ,A错误。mysqlpump
支持并行备份数据库,--include-databases=%
表示包含所有数据库,符合进行全量备份(包括ndbinfo和sys数据库)且并行备份的需求 ,B正确。mysqlpump --all-databases
命令不包含ndbinfo和sys等内部数据库,不符合备份要求 ,C错误。mysqldump --single-transaction
主要是在单个事务内进行备份,保证备份数据的一致性,但不是并行备份 ,D错误。所以答案是B。
mysqldump
和 mysqlpump
等MySQL备份工具的特点和功能差异,如 mysqlpump
支持并行备份,而 mysqldump
是顺序备份。--all-databases
、--include-databases
等选项对备份范围的控制,以及如何根据具体备份需求(如包含特定内部数据库、并行备份等)选择合适的命令和选项。Choose two.
There are five MySQL instances configured with a working group replication.
Examine the output of the group members:
mysql> SELECT MEMBER_ID,MEMBER_STATE FROM performance_schema.replication_group_members;
+--------------------------------------+--------------+
| MEMBER_ID | MEMBER_STATE |
+--------------------------------------+--------------+
| 1999b9fb-4aaf-11e6-bb54-28b2bd168d07 | UNREACHABLE |
| 199b2df7-4aaf-11e6-bb16-28b2bd168d07 | ONLINE |
| 199bb88e-4aaf-11e6-babe-28b2bd168d07 | ONLINE |
| 19ab72fc-4aaf-11e6-bb51-28b2bd168d07 | UNREACHABLE |
| 19b33846-4aaf-11e6-ba81-28b2bd168d07 | UNREACHABLE |
+--------------------------------------+--------------+
Which two statements are true about network partitioning in the cluster?
□ A) The group replication will buffer the transactions on the online nodes until the unreachable nodes return online.
□ B) A manual intervention to force group members to be only the working two instances is required.
□ C) The cluster will shut down to preserve data consistency.
□ D) There could be both a 2 - node and 3 - node group replication still running, so shutting down group replication and diagnosing the issue is recommended.
□ E) The cluster has built - in high availability and updates group_replication_ip_whitelist to remove the unreachable nodes.
选择两项。
有五个配置了组复制功能且正常工作的MySQL实例。
检查组成员的输出:
mysql> SELECT MEMBER_ID,MEMBER_STATE FROM performance_schema.replication_group_members;
+--------------------------------------+--------------+
| MEMBER_ID | MEMBER_STATE |
+--------------------------------------+--------------+
| 1999b9fb-4aaf-11e6-bb54-28b2bd168d07 | UNREACHABLE |
| 199b2df7-4aaf-11e6-bb16-28b2bd168d07 | ONLINE |
| 199bb88e-4aaf-11e6-babe-28b2bd168d07 | ONLINE |
| 19ab72fc-4aaf-11e6-bb51-28b2bd168d07 | UNREACHABLE |
| 19b33846-4aaf-11e6-ba81-28b2bd168d07 | UNREACHABLE |
+--------------------------------------+--------------+
关于集群中的网络分区,以下哪两个陈述是正确的?
□ A) 组复制将在在线节点上缓冲事务,直到不可达节点恢复在线。
□ B) 需要手动干预以强制将组成员仅设置为两个正常工作的实例。
□ C) 集群将关闭以保持数据一致性。
□ D) 可能同时存在一个两节点和一个三节点的组复制仍在运行,因此建议关闭组复制并诊断问题。
□ E) 集群具有内置的高可用性,并更新group_replication_ip_whitelist以删除不可达节点。
group_replication_ip_whitelist
来移除不可达节点的内置机制 ,E错误。所以答案是B、D。
Choose three.
Your MySQL server is running on the Microsoft Windows platform.
Which three local connection protocols are available to you?
□ A) UDP
□ B) shared memory
□ C) SOCKET
□ D) named pipes
□ E) X Protocol
□ F) TCP/IP
选择三项。
你的MySQL服务器在Microsoft Windows平台上运行。
以下哪三种本地连接协议可供使用?
□ A) UDP
□ B) 共享内存
□ C) 套接字
□ D) 命名管道
□ E) X协议
□ F) TCP/IP
所以答案是B、D、F。