Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

myisamchk: error: myisam_sort_buffer_size is too small

Got the following error while trying to repair a table individually:

myisamchk: error: myisam_sort_buffer_size is too small

The command I was using was:

myisamchk -r -f  TABLE-NAME.MYI

To fix this just append the following to the command above:

--sort_buffer_size=2G

So the command becomes:

myisamchk -r -f  TABLE-NAME.MYI --sort_buffer_size=2G