Examveda

Which option repairs MyISAM tables automatically after they open?

A. -myisam-recover=FORCE

B. -myisam-recover=STOP

C. -recover-myisam=FORCE

D. -recover-myisam=STOP

Answer: Option A

Solution (By Examveda Team)

This question is about how MySQL handles MyISAM tables, which are a type of table used to store data. Sometimes, MyISAM tables can become damaged or corrupted. This can happen for various reasons, like power outages, problems with the storage disk, or software errors.
MySQL provides a way to repair these damaged tables using special command-line options.
Let's break down the options:
Option A: -myisam-recover=FORCE
This option tries to repair the MyISAM table even if it's heavily damaged. It's like a "force repair" option.
Option B: -myisam-recover=STOP
This option stops the repair process as soon as it finds an error. It's useful if you want to see the errors without trying to fix them.
Option C: -recover-myisam=FORCE
This option is not a valid option.
Option D: -recover-myisam=STOP
This option is not a valid option.
So the answer is: Option A (-myisam-recover=FORCE)
This option will attempt to repair the MyISAM tables automatically after they open.
Remember, repairing MyISAM tables should be done with caution. It's best to have backups before you attempt any repairs.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous