nerdexam
Oracle

1Z0-883 · Question #31

MySQL is installed on a Linux server and has the following configuration: [mysqld] User=mysql Datadir=/data/mysql As the root' user, change the datadir location by executing: Shell> cp R…

The correct answer is B. MySQL requires correct file ownership while remaining secure. See the full explanation below for the reasoning.

Question

MySQL is installed on a Linux server and has the following configuration:

[mysqld] User=mysql Datadir=/data/mysql As the `root' user, 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?

Options

  • AMySQL cannot be run as the root user.
  • BMySQL requires correct file ownership while remaining secure.
  • CMySQL needs to be run as the root user, but file cannot be owned by it.
  • DThe mysqld process requires all permissions within datadir to be the same.

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    84% (31)
  • C
    5% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-883 Practice