Alexey Kovyazin, last update 28-March-2014
If Firebird database is corrupted, please follow these steps to fix it:
gfix.exe -v -full -user SYSDBA -pass masterkey path_to_your_database
gfix.exe -mend -ig -user SYSDBA -pass masterkey path_to_your_database
gbak -b -g -v -user SYSDBA -pass masterkey path_to_your_database path_to_backup
gbak -c -v -user SYSDBA -pass masterkey path_to_backup path_to_database