
Von Zeit zu Zeit stürzt mein MySQL 4.1 Windows-Dienst mit den folgenden Zeilen im Protokoll ab:
091218 9:31:25 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
091218 9:31:33 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 2 817025450.
InnoDB: Doing recovery: scanned up to log sequence number 2 817025450
091218 9:31:35 InnoDB: Flushing modified pages from the buffer pool...
091218 9:31:35 InnoDB: Started; log sequence number 2 817025450
C:\Programme\MySQL\MySQL Server 4.1\bin\mysqld-nt: ready for connections.
Version: '4.1.14-nt' socket: '' port: 3306 Official MySQL binary
100107 9:02:51 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
100107 9:02:53 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 2 953338420.
InnoDB: Doing recovery: scanned up to log sequence number 2 953338420
100107 9:02:53 InnoDB: Flushing modified pages from the buffer pool...
100107 9:02:53 InnoDB: Started; log sequence number 2 953338420
C:\Programme\MySQL\MySQL Server 4.1\bin\mysqld-nt: ready for connections.
Version: '4.1.14-nt' socket: '' port: 3306 Official MySQL binary
Diese Meldungen weisen auf kein bestimmtes Problem hin. Was kann ich tun, um den Ursprung der Abstürze zu ermitteln?
Antwort1
Stoppen der Datenbank
Erstellen Sie einen Dump (oder eine Sicherungskopie) Ihrer Datenbank.
Entfernen Sie alles im Verzeichnis data (Windows) oder /var (UNIX).
Starten Sie die Datenbank neu (jetzt wird die Datenbank gestartet)
MySQL-Verzeichnis wiederherstellen.
DB stoppen
andere Datenbanken und Tabellen wiederherstellen
Datenbank starten
Antwort2
Ich glaube, Sie müssen die innodb_force_recovery=2
Einstellung vornehmen und einen MySQL-Dump durchführen, das ursprüngliche Datenbankverzeichnis löschen und es mithilfe eines Imports neu erstellen.Dieser Artikelenthält detailliertere Schritte.