Mysql OCP 15题

There are multiple instances of MySQL Server running on a single OS that is backed up using the mysqlbackup command.
The /etc/my/cnf contains default values, for example, datadir=/var/lib/mysql/, with extra instances having their own separate my.cnf file (for example /etc/mysql/instanceN.cnf) overriding the defaults.
A restore of the second instance is attempted from the mysqlbackup archive using this command:
mysqlbackup –backup-dir=/opt/backup/mysql/instance2 copy backup on starting the second MySQL instance, you notice that the data does not match the expected backup. Which command-line option is required to successfully update the second instance?
在使用mysqlbackup命令备份的单个操作系统上运行有多个MySQL服务器实例。/etc/my/cnf包含默认值,例如datadir=/var/lib/mysql/,额外的实例有自己独立的my.cnf文件(例如/etc/mysql/instanceN.cnf)来覆盖默认值。尝试使用以下命令从mysqlbackup存档还原第二个实例:mysql backup–backup dir=/opt/backup/mysql/instance2复制回在启动第二个MySQL实例时,您注意到数据与预期的备份不匹配。成功更新第二个实例需要哪个命令行选项?
A. –restore=2
B. —copy-back-from-log
C–—backup-instance=/var–ib/mysql/instance2
D. —instance=/var/lib/my–l/instance2
E. —defaults-file=/etc/m–ql/instance2.cnf
Answer: E
解析:mysql 的启动参数默认从/etc/my.cnf 取得,如果要使用特定的参数文件来启动,需要使用—defaults-filehttps://www.cndba.cn/hbhe0316/article/22754

https://www.cndba.cn/hbhe0316/article/22754
https://www.cndba.cn/hbhe0316/article/22754 https://www.cndba.cn/hbhe0316/article/22754
https://www.cndba.cn/hbhe0316/article/22754
https://www.cndba.cn/hbhe0316/article/22754 https://www.cndba.cn/hbhe0316/article/22754 https://www.cndba.cn/hbhe0316/article/22754
https://www.cndba.cn/hbhe0316/article/22754
https://www.cndba.cn/hbhe0316/article/22754

版权声明:本文为博主原创文章,未经博主允许不得转载。

MYSQL

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值