ERROR 145 (HY000): Table './wordpress/wp_postmeta' is marked as crashed and should be repaired
找到mysql的安装目录的bin/myisamchk工具,在命令行中输入:
myisamchk -c -r ../data/tablename/a.MYI
myisamchk -c -r ../data/tablename/posts.MYI
myisamchk -c -r /var/lib/mysql/wordpress/wp_postmeta.MYI
myisamchk: error: 140 when opening MyISAM-table,去掉后面的MYI就好了,mysql5.6以后改版了
myisamchk -c -r /var/lib/mysql/wordpress/wp_postmeta