Changes between Version 1 and Version 2 of howto/MysqlRepair


Ignore:
Timestamp:
12/10/10 13:09:02 (14 years ago)
Author:
Edwin Eefting
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/MysqlRepair

    v1 v2  
    5656}}}
    5757
     58 * Nu kunt u de database dumpen zonder dat de mysql server crashed met een error. Indien de server nog steeds crashed, stel dan een hogere innodb_force_recovery in. (Zie instructies op mysql website)
     59
     60{{{
     61# mysqldump zarafa -p`cat /etc/my.passwd ` > zarafa.sql
     62# less /home/system/mysql5/darkstar.err
     63}}}
     64
     65 * Zet de database uit en verplaats de innodb data files. '''Zorg dat u zeker weet dat er geen andere InnoDB databases zjin dan Zarafa'''
     66{{{
     67# svc -d /sevice/mysql
     68# cd /home/system/mysql5
     69# mkdir ../old
     70# mv ib* ../old
     71# mv zarafa ../old
     72}}}
     73
     74 * Zet de recovery optie weer uit, start de database weer op, maak de zarafa database opnieuw aan en herimporteer de data
     75{{{
     76# mcedit /etc/my.cnf
     77# svc -u /sevice/mysql
     78# mysqladmin create zarafa -p`cat /etc/my.passwd `
     79# less /home/system/mysql5/darkstar.err
     80InnoDB: The first specified data file ./ibdata1 did not exist:
     81InnoDB: a new database to be created!
     82101210 12:47:20  InnoDB: Setting file ./ibdata1 size to 10 MB
     83InnoDB: Database physically writes the file full: wait...
     84101210 12:47:20  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
     85InnoDB: Setting log file ./ib_logfile0 size to 5 MB
     86InnoDB: Database physically writes the file full: wait...
     87101210 12:47:20  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
     88InnoDB: Setting log file ./ib_logfile1 size to 5 MB
     89InnoDB: Database physically writes the file full: wait...
     90InnoDB: Doublewrite buffer not found: creating new
     91InnoDB: Doublewrite buffer created
     92InnoDB: Creating foreign key constraint system tables
     93InnoDB: Foreign key constraint system tables created
     94101210 12:47:21  InnoDB: Started; log sequence number 0 0
     95# cd /home
     96# mysql -p`cat /etc/my.passwd ` zarafa <zarafa.sql
     97}}}
     98
     99 * Nu is uw database weer normaal bruikbaar. Start zarafa op en controleer het resultaat.
    58100
    59101
     102
     103
     104
     105