Home » MYSQL » MySQL Database Operations » Question
  1. The datadir variable value can be seen using ______________.
    1. SHOW VARIABLE
    2. SHOW VARIABLES
    3. DISP VARIABLES
    4. CONNECT VARIABLES
    5. None of these
Correct Option: B

The data directory location is checked by the ‘datadir’ variable. It can be obtained using a ‘SHOW VARIABLES’ statement or a ‘mysqladmin’ variables command, like: SHOW VARIABLES LIKE ‘datadir’.



Your comments will be displayed only after manual approval.