You are viewing an older version of this section. View current production version.
Join the SingleStore Community Today
Get expert advice, develop skills, and connect with others.

REPAIR DATABASE

Brings a database that has failed to recover (due to a log corruption) back into the online state.

Info

MemSQL versions 4 and higher automatically repair databases as needed.

Syntax

REPAIR DATABASE db_name

Remarks

Example

   memsql> REPAIR DATABASE test;