pages:howtos:mysql:mysql-table-reparieren
Table of Contents
Wie man einen MySQL Table repariert
Problem
ERROR 144 (HY000) at line 1: Table './cadapfakse/wpfk1_options' is marked as crashed and last (automatic?) repair failed
Quellen
- Kofler / MySQL 5, Seite 504
Vorgehensweise
Alle Datenbanken wegdumpen:
cd /root mkdir ./backup cd ./backup mysqldump -u root -p --all-databases > backup.sql
MySQL stoppen:
/etc/init.d/mysql stop
das Datenverzeichnis backupen:
cp -arv /var/lib/mysql /var/lib/mysql_backup_22.02.2013
das Backup des Datenverzeichnisses zu einer Arbeitskopie kopieren:
cp -arv /var/lib/mysql_backup_22.02.2013 /var/lib/mysql_backup_work
Den Table reparieren:
cd /var/lib/mysql_backup_work/c8wpfahrradkiste myisamchk -r wpfk1_options
- recovering (with sort) MyISAM-table 'wpfk1_options' Data records: 2572 - Fixing index 1 Wrong block with wrong total length starting at 12856 - Fixing index 2 Data records: 2570
Das Originale Datenbankverzeichnis wegmoven
mv /var/lib/mysql /var/lib/mysql_original
Die Arbeitskopie live stellen
mv /var/lib/mysql_backup_work /var/lib/mysql
MySQL wieder starten
/etc/init.d/mysql start
~~DISCUSSION~~
pages/howtos/mysql/mysql-table-reparieren.txt · Last modified: 2021/12/09 23:26 by The Thing That Should Not Be