English 中文(简体)
MySQL表被标记为坠毁,最后(自动吗?)修理失败
原标题:MySQL table is marked as crashed and last (automatic?) repair failed
  • 时间:2012-01-12 23:16:50
  •  标签:
  • mysql
  • repair

我突然修理了这个表格的服务器,当我回到所有桌子时,这张表格是ok的,但显示使用,而且我试图修理该表。

ERROR 144 - 表144./extas_d47727/xzclf_ads被标记为坠毁,最后(自动)修理失败

我可以做些什么来修补?

最佳回答

如果你的MySQL进程正在进行,就停止了这一进程。 On Debian:

sudo service mysql stop

查阅您的数据。 On Debian:

cd /var/lib/mysql/$DATABASE_NAME

Try running:

myisamchk -r $TABLE_NAME

如果做这项工作的话,你可以尝试:

myisamchk -r -v -f $TABLE_NAME

您可以再次启用MySQL服务器。 On Debian:

sudo service mysql start
问题回答

处理下列问题:

repair table <table_name>;

我有同样的问题,它解决了我的问题。

This was my experience resolving this issue. I m using XAMPP. I was getting the error below

 Fatal error: Can t open and lock privilege tables: Table  .mysqldb  is marked as crashed and last (automatic?) repair failed  

This is what I did to resolve it, step by step:

  1. went to location C:xamppmysql, For you, location may be different, make sure you are in right file location.
  2. created backup of the data folder as data-old.
  3. copied folder "mysql" from C:xamppmysqlackup
  4. pasted it inside C:xamppmysqldata replacing the old mysql folder.

而且,它发挥了作用。 考虑到这一点,我已经尝试了约10个解决办法,并为我做了努力。 这种解决办法可能或不可能对你有用,但不管怎样,在你做任何事情之前,都会支持你的数据。

注:我总是选择用修理指挥来解决这个问题,但就我而言,我一心一意是,我完全能够开车,一心一意能够指挥我方。

不管你做什么,都会定期支持你的数据库。

如果在进入/瓦尔/布/米绍尔时允许你拒绝,则采用以下解决办法:

$ cd /var/lib/
$ sudo -u mysql myisamchk -r -v -f mysql/<DB_NAME>/<TABLE_NAME>

我需要在修缮说明中增加美国能源公司。

REPAIR TABLE <table_name> USE_FRM;

我去tmyisamchk:错误:我的isam_sort_buffer_size是太小的

The solution

myisamchk -r -v mysql/<DB_NAME>/<TABLE_NAME> --sort_buffer_size=2G

Go to data_dir and abolition of the 页: 1

If this happend to your XAMPP installation, just copy global_priv.MAD and global_priv.MAI files from ./xampp/mysql/backup/mysql/ to ./xampp/mysql/data/mysql/.

在不停数据库的情况下,我走到了这个夹子上。

cd /var/lib/mysql/$DATABASE_NAME

之后执行以下指挥

myisamchk -r -v -f$TABLE_NAME

enter image description here

在没有任何问题的情况下,指挥部门成功完成并解决问题

谢谢。

这是100%的解决办法。 我尝试了。

5. 我方 -r -v -f ------ ------ 页: 1

我在现有答复中尝试了这些选择,主要是我的假想中没有工作的明显正确之处。 然而,工作是利用SphpMyAdmin进行的。 选择数据库,然后从底层的菜单中选取表格。

  • Server type: MySQL
  • Server version: 5.7.23 - MySQL Community Server (GPL)
  • phpMyAdmin: Version information: 4.7.7

enter to your mysql and select your database then

repair table ;

与我合作





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...