Background
You might experience the following MySQL error whilst trying to restore a Virtualmin database:
#3 - Error writing file './DB_NAME/TABLE_NAME.frm' (Errcode: 122)
Solution
Check to see if the website in question has sufficient disk quota. On a default installation of Virtualmin the default quota is 1 GB, and you might have breached it.