Workshop

The quiz and exercises are provided to help you solidify your understanding of the material covered today. Try to understand the quiz and exercise answers before continuing to tomorrow's lesson.

Quiz

1:

True or False: myisamchk can only check and repair tables.

A1: False. myisamchk can also be used to optimize tables. It can reclaim wasted space and re-sort indexes and data records.
2:What is the SQL command for repairing a table?
A2: REPAIR TABLE

Exercises

1:Write a myisamchk command that performs a table repair that attempts to fix indexes only.
A1: You should have this:
myisamchk -r -q table_name

or this:

myisamchk --recover --quick table_name
2:Write a myisamchk command that performs a table repair that attempts to fix indexes and ...

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.