Welcome to Dentoo Errors & Solutions archive, where you can post error messages and receive solutions from other members of the community. Completely free to sign up and use!

Categories

0 votes

When trying to repair a crashed database I get this error

Mysql table repair failed: “Can't create new tempfile”

How can I fix it?

in Linux by (940 points)

1 Answer

0 votes

In CentOS login as root and do

myisamchk -r -f table_name.MYI

Tis will fix the problem. Remember to change table_name for the table in question.

You can change directory to /var/lib/mysql/[database]/

to see the mysql files on Centos.

 

by (940 points)
remove .MYI if it fails with it

Dedicated Servers
...