The easiest would be to restore the database from backup. That assumes that "database crashed" means that database got corrupted and not that the database service has crashed.
This forum is actually about the database module not Moodle database, so this post does not belong here.
General help
Database crashed
This discussion has been locked so you can no longer reply to it.