暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

MySQL5.7OCP 第三十六题 关于MySQL安装配置

原创 岳彩磊 2023-03-14
383

36、purpose of changing ownship of datadir to 'mysql' user

D MySQL requires correct file ownship while reamaining secure

 

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;

 

MySQL安装在Linux服务器上,配置如下:

将datadir的所有权更改为“mysql”用户的目的是什么?

D. mysql需要正确的文件所有权,同时保持安全;

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论