I'm facing the same problem shown in this thread: Mysql table repair failed: "Can't create new tempfile"
I'm a newbie here. So please consider this while reading the question. In the above thread, this was the solution:
service mysql stop
myisamchk -rf /config/databases/[databasename]/wp_posts.MYI
service mysql start
What if I have a different database name?
For example, if I'm seeing the error:
Can't create new tempfile: './waputepr_wp167/wpdm_redirection_404`
then this should be the correct line, right?
service mysql stop
myisamchk -rf /config/databases/waputepr_wp167/wp_posts.MYI
service mysql start
Is this approach correct?