Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

myisamchk: error: 140 when opening MyISAM-table

Tags:

sql

mysql

i have this error when run repair?

myisamchk: error: 140 when opening MyISAM-table '/var/lib/mysql/zibarsho_karno/wp_yoast_seo_links.MYI'

how i can fix this ???

like image 238
R Shahpari Avatar asked Mar 17 '18 15:03

R Shahpari


2 Answers

ls *.MYI | sed 's/\.[^.]*$//' | xargs myisamchk -F -U

Saved me here because of basename extra operand and other issue. Please note -F -U are for Fast and UPDATE STATUS flag. You can use without it.

like image 62
farness Avatar answered Sep 30 '22 04:09

farness


This is a bug already reported since MySQL 5.6

Still happening in 8.0.11 so in the mean time you can use the walkarround solution.

Not using the MYI extension.

myisamchk  --force --update-state var/lib/mysql/zibarsho_karno/wp_yoast_seo_links
like image 35
Jesus Uzcanga Avatar answered Sep 30 '22 06:09

Jesus Uzcanga