ERP Database Crashed at Midnight and the Account Set Would Not Open: A Complete Review of a Factory Data Recovery

2026-09-28 19:12:56

Last year, at an injection mold shop, the ERP system suddenly would not start just before the end of the workday on a Friday afternoon. The person in charge opened the client, but the account set file could not be read, and the error displayed a string of incomprehensible codes. The most recent full backup was from three days earlier. The factory manager panicked in the group chat: production scheduling was due on Monday, delivery notes had to go out to customers, and all the data was stuck inside. By the time we arrived on site, they had already restarted it several times themselves and tried to restore part of it from the backup. The result was that things became even more chaotic, and even a few tables that had been readable developed problems. Moges has seen this scene more than once. A factory's production, inventory, and receivables and payables all live in one system; when it stops, the whole workshop and outside customers are blocked.

ERP Database Crashed at Midnight and the Account Set Would Not Open: A Complete Review of a Factory Data Recovery

1. First Determine Which Layer Failed, and Do Not Rush to Touch the Backup

When a database has a problem, it does not necessarily mean the data is lost. On site, we first distinguish several cases: whether the service process has died, whether the disk has failed, or whether the data file itself is logically corrupted. Many times it is only the first two, and recovery is as simple as starting the service again or replacing a disk, which has nothing to do with "data recovery." Rushing to restore from a backup may instead overwrite a scene that could still be saved. So the first step is to locate the fault, not to take action.

2. Rescue as Much as You Can First

Once it is confirmed that the data file is corrupted, the first step is not recovery but rescue. We first export, in read-only mode, the tables that can still be read and the pages that can still be parsed; even a partial export is better than rebuilding the entire database. That time, most of the factory's order and inventory tables were readable. We secured those first, then dealt with the few indexes that were truly damaged. When it comes to data, losing even one record less is better than losing everything.

3. A Backup Is Not Enough Merely to Exist; It Must Be Restorable

This factory did have backups; the problem was that the backups had not been verified for a long time. When they were truly needed, the backup files themselves turned out to be incomplete. We later helped them change backups from "copy on a schedule" to "scheduled copy plus scheduled restore drills," picking one backup each month and actually restoring it in an isolated environment to confirm that it could start. This drill step cannot be skipped; otherwise a backup is only psychological comfort.

4. Make Recovery a Standard Step of Going Live

Later, when this factory adopted our MES, we wrote data backup, off-site copies, and restore drills directly into the go-live checklist, rather than remembering to add them after launch. Once a production system is running, downtime means loss, so the recovery plan must be delivered together with the system, not sourced on an ad hoc basis after a problem occurs. A system going live does not mean the data is truly safe.

Summary:

Data recovery sounds like firefighting, but the real work is done in ordinary times. For a factory, bringing MES and ERP online is only the beginning of digitalization; whether data can be rescued quickly and reliably determines whether an accident costs half a day or drags on for a week. When Moges helps factories digitalize production management, almost every factory encounters these underlying problems; making backups and drills solid in advance is far more cost-effective than remedying things afterward. Mold shops and machining plants in the Kunshan and Suzhou area whose ERP or MES database has crashed and needs recovery can contact Moges directly.

Related reading: for more issues of this kind, see Factory IT Services Overview; further reading includes Off-site Backup and Restore Drills by Default and Restoring Accidentally Deleted Data from binlog.

« Back to News list