| 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 |
| 80 | InnoDB: The first specified data file ./ibdata1 did not exist: |
| 81 | InnoDB: a new database to be created! |
| 82 | 101210 12:47:20 InnoDB: Setting file ./ibdata1 size to 10 MB |
| 83 | InnoDB: Database physically writes the file full: wait... |
| 84 | 101210 12:47:20 InnoDB: Log file ./ib_logfile0 did not exist: new to be created |
| 85 | InnoDB: Setting log file ./ib_logfile0 size to 5 MB |
| 86 | InnoDB: Database physically writes the file full: wait... |
| 87 | 101210 12:47:20 InnoDB: Log file ./ib_logfile1 did not exist: new to be created |
| 88 | InnoDB: Setting log file ./ib_logfile1 size to 5 MB |
| 89 | InnoDB: Database physically writes the file full: wait... |
| 90 | InnoDB: Doublewrite buffer not found: creating new |
| 91 | InnoDB: Doublewrite buffer created |
| 92 | InnoDB: Creating foreign key constraint system tables |
| 93 | InnoDB: Foreign key constraint system tables created |
| 94 | 101210 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. |