签到成功

知道了

CNDBA社区CNDBA社区

Mysql OCP 36题

2021-12-12 22:29 1142 0 原创 mysql
作者: hbhe0316

MySQL is installed on a Linux server and has this configuration:
[mysqld]
user=mysql
datadir=/data/mysql/
As the ‘root’ user, you change the datadir location by executing:
shell> cp –R /var/lib/mysql /data/mysql/
shell> chown –R mysql /data/mysql
What is the purpose of changing ownership of datadir to the ‘mysql’ user?
A. MySQL needs to be run as the root user, but files cannot be owned by it.
B. The mysqld process requires all permissions within datadir to be the same.
C. MySQL cannot be run as the root user.
D. MySQL requires correct file ownership while remaining secure.
Answer: Dhttp://www.cndba.cn/hbhe0316/article/22775http://www.cndba.cn/hbhe0316/article/22775http://www.cndba.cn/hbhe0316/article/22775

http://www.cndba.cn/hbhe0316/article/22775
http://www.cndba.cn/hbhe0316/article/22775
http://www.cndba.cn/hbhe0316/article/22775

Linux上安装的MySQL配置如下:
[mysqld]
user=mysql
datadir=/data/mysql/
然后你以root身份修改了datadir的路径和所有者信息:
shell> cp –R /var/lib/mysql /data/mysql/
shell> chown –R mysql /data/mysql
上述操作中修改datadir目录的所有者信息为”mysql”的目的是什么?
A. MySQL需要以root身份运行,但是文件不能属于root
B. mysqld进程需要datadir目录下的所有权限
C. MySQL不能以root身份运行
D. MySQL需要正确的所有者来确保安全http://www.cndba.cn/hbhe0316/article/22775http://www.cndba.cn/hbhe0316/article/22775

http://www.cndba.cn/hbhe0316/article/22775
http://www.cndba.cn/hbhe0316/article/22775

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

MYSQL

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:2654209次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ