Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

205

积分

19

好友

29

主题
1#
发表于 2016-7-20 12:07:19 | 查看: 2663| 回复: 0
【dbdao.com MySQL OCP认证专题】- MySQL 5.6 - OCP 考题讲解

14.

You execute the following statement in a Microsoft Windows environment. There are no conflicts in the path name definitions.
C: \> mysqld –-install Mysql56 –-defaults–file=C:\my–opts.cnf
What is the expected outcome?

A. Mysqld acts as an MSI installer and installs the Mysql 5.6 version, with the c:\my-opts.cnf configuration file.
B. Mysql is installed as the Windows service name Mysql56, and uses c:\my-opts.cnf as the configuration file.
C. An error message is issued because –-install is not a valid option for mysqld.
D. A running Mysql 5.6 installation has its runtime configuration updated with the server variables set in c:\my-opts.cnf.

------------------------------------------
答案:B

分析:
首先mysqld是作为MySQL服务端主程序来运行的,它并不负责MSI安装的过程,因此A错。
通过mysqld --install可以进行Windows服务注册,同时--defaults-file用于设置启动服务端时使用的配置文件,B正确。
请注意--install命令项仅存在于Windows版MySQL的mysqld命令中,如果你是在Linux上安装MySQL是无法找到mysqld对应的--install命令项的。
C错误,因为其对于Windows版的mysqld是有效项。
dbdao_item_id660-3_wm.png
D错,因此这命令不是用于安装时的配置。

参考:
http://dev.mysql.com/doc/refman/5.7/en/windows-start-service.html
您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-4-24 08:32 , Processed in 0.048202 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569