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需要正确的文件所有权,同时保持安全;




