If you can use the model database with the use model command, and if you have a valid dump of the database, then you can load the model database from backup.
If you cannot use the model database or do not have a dump of the model database, follow these steps: