MySQL Forums
Forum List  »  Italian

come recuperare i dati dai logfile?
Posted by: stefania zarfati
Date: March 14, 2011 10:35AM

Buongiorno a tutti.
Purtroppo il server su cui era installato mysql è andato distrutto....ovviamente senza backup.
Siamo riusciti a recuperare i file ibdata1 (che però sembra essere corrotto) e logfile0 e logfile1.
messi tutti e tre sotto la directory data di un altro server con stessa versione di mysql (5.1), facendo ripartire il servizio mysql dà un errore in cui sembra essere corrotto il db.
Così ho provato ad eliminare ibdata1 e a far ripartire il servizio con i soli logfile.
In questo modo dovrebbe ricreare l'ibdata partendo dai file di log.
Purtroppo da un errore anche in questo modo, crea comunque un ibdata1 ma credo che dentro sia vuoto.
Sono abbastanza sicura che i logfile siano integri, infatti ho provato a fare la stessa procedura su un db funzionante (quindi eliminazione di ibdata e riavvio del servizio mysql) e dà stranamente lo stesso errore.
l'errore è:

InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
060313 15:42:17 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Error: all log files must be created at the same time.
InnoDB: All log files must be created also in database creation.
InnoDB: If you want bigger or smaller log files, shut down the
InnoDB: database and make sure there were no errors in shutdown.
InnoDB: Then delete the existing log files. Edit the .cnf file
InnoDB: and start the database again.
060313 15:42:17 [ERROR] Default storage engine (InnoDB) is not available
060313 15:42:17 [ERROR] Aborting

Qualche idea?



Edited 1 time(s). Last edit at 03/14/2011 10:44AM by stefania zarfati.

Options: ReplyQuote


Subject
Views
Written By
Posted
come recuperare i dati dai logfile?
4843
March 14, 2011 10:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.