Scroll down to where it says “Stage 1: Checking your tables”, and start from there. However, be sure to note the warning from the preceding paragraph, that reminds you that you need to stop MySQL before running the repairs. You can stop MySQL by running this command:
/etc/init.d/mysqld stop
Then you can step through the instructions they have in there.
Those instructions are assuming that, as the root user, you’ve moved into the directory containing the tables you want to repair.
By default, MySQL stores it’s databases in /var/lib/mysql. So if you’re looking to repair the tables for a database named “guru777”, you’d want to “cd” into that dir by running:
cd /var/lib/mysql/guru777
And then run the myisamchk program as you did above.
I registered an account on this site for the sole purpose of making a comment here. I ran into a very similar issue and andreychek’s posts were instrumental in resolving my issue. So thanks very much! I don’t care if it is 4yrs old, the people need to know.