mysqlcheck --repair a specific table?
Using screen or tmux to handle this task will mean that if the SSH connection is lost the session will continue. When you log back in you will find the mysql -u xxx -p session is still active.

nohup works too but "screen and tmux are a sysadmin's best friends" as jynus commented.