MySQL 8.0 Database Administrator — Question 4
Where is the default data directory located after installing MySQL using RPM on Oracle Linux 7?
Answer options
- A. /usr/mysql
- B. /usr/bin
- C. /etc/my.cnf
- D. /var/lib/mysql
- E. /usr
Correct answer: D
Explanation
The correct answer is D, as the default data directory for MySQL installations on Oracle Linux 7 is typically set to /var/lib/mysql. Options A, B, C, and E are incorrect because they do not represent the standard location where MySQL stores its data files.