The “Windows Update database error” message on Windows 10 is Windows telling you its bookkeeping is broken. Behind every update check is a local database — download metadata in the SoftwareDistribution folder, the update catalog, registration entries — that tracks what is installed, what is available, and what each package needs. When that bookkeeping corrupts, Windows Update cannot figure out what to do: checks fail, error codes like 0x80070490 appear, and the troubleshooter may report it detected a “database error” it cannot fix. Your installed updates are fine; it is the ledger that is damaged.
The corruption sources are familiar: an update interrupted by a force reboot, disk errors, an overzealous cleaner tool deleting update files, or antivirus quarantining components. The repairs rebuild the ledger from scratch — Windows re-downloads clean metadata and re-registers everything. Work through the seven below in order; the early ones fix most cases, and the later ones handle the stubborn corruption that survives a cache reset.
Why this happens
- Interrupted updates. Force reboots mid-install leave the database half-written.
- Disk errors or bad sectors. Physical storage damage in the database files.
- Aggressive cleaner tools. Third-party utilities deleting SoftwareDistribution contents mid-operation.
- Antivirus quarantine. Security software removing update components it misidentified.
- Corrupted DataStore. The DataStore.edb file itself damaged beyond automatic repair.
- Service state corruption. The update services’ registration data inconsistent.
- Failing drive. Recurring corruption is often the first symptom of dying storage.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Run the troubleshooter and note the exact error
Start with the automated diagnosis and capture the details you will need.
- Run Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Update.
- Note exactly what it reports — “database error detected” versus “database error fixed” changes the plan.
- Also note any error code from Settings > Update & Security > Windows Update > View update history (0x80070490 is the classic database code).
- If the troubleshooter fixed it, run one manual update check to confirm. If it detected but could not fix the error, continue — the manual rebuild below does what the automated tool cannot.
Fix 2: Rebuild the update cache (the core fix)
This is the repair that resolves most database errors: delete the corrupted database files and let Windows rebuild them clean.
- Open Command Prompt as administrator.
- Stop the services:
net stop wuauserv net stop bits net stop cryptsvc net stop msiserver - Rename the database folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old - Restart all four services with
net start, then check for updates. Windows rebuilds the database from scratch — the first check takes longer than usual while it re-downloads metadata. This single fix resolves the large majority of database errors.
Fix 3: Check disk health
If the database corrupted once, make sure the disk is not the reason — especially on older laptops.
- In an elevated prompt, run
chkdsk C: /f /r— schedule it for the next restart if prompted, then reboot and let it complete (it can take an hour or more on large drives). - Check SMART health: in an elevated prompt, run
wmic diskdrive get status— anything other than “OK” means the drive is failing. - If chkdsk found and repaired bad sectors in the Windows folder area, the database error was likely physical — monitor for recurrence.
- Recurring database corruption after a clean rebuild is a strong failing-drive signal: back up your data and plan a drive replacement (ideally an SSD upgrade) rather than fighting symptoms.
Fix 4: Re-register the update components
Database errors sometimes come with corrupted component registration. Re-register the DLLs the update engine depends on.
- In an elevated Command Prompt, run these one at a time:
regsvr32 wuapi.dll regsvr32 wuaueng.dll regsvr32 wups.dll regsvr32 wuwebv.dll regsvr32 atl.dll - Confirm each reports success before continuing.
- Then reset the BITS queue:
bitsadmin /reset /allusers. - Restart and check for updates. Re-registration fixes the cases where the database files are fine but the engine reading them is broken.
Fix 5: Repair the component store with DISM
When cache rebuilds and re-registration fail, the corruption extends into the component store.
- Run
DISM /Online /Cleanup-Image /RestoreHealthin an elevated prompt (15–30 minutes). - Follow with
sfc /scannowto full completion. - Restart, then repeat the Fix 2 cache rebuild — in that order: healthy store first, then fresh database.
- If DISM cannot find sources, use a Windows 10 ISO as the source via
/Source:. For related store-level failures, our servicing stack repair guide covers the deeper machinery — and the Windows 11 database error guide documents the same repair pattern on the newer OS.
Fix 6: Remove interfering third-party software
Cleaners and aggressive antivirus are repeat offenders for database corruption — remove the cause, not just the symptom.
- Uninstall any third-party “PC cleaner” or “optimizer” tools — these are the most common deleters of update database files.
- Temporarily disable third-party antivirus real-time protection and check whether updates now succeed; if so, add exclusions for the update paths or switch to Windows Security.
- Rebuild the cache once more (Fix 2) after removing the interfering software, so the new database is built in a clean environment.
- Going forward, let Windows manage its own update files — manual or third-party deletion of SoftwareDistribution contents while services run is a classic corruption recipe.
Fix 7: In-place upgrade as the final rebuild
For database corruption that survives everything, rebuild the Windows installation while keeping your data.
- Back up your important files (the process preserves them, but a backup is mandatory before system-level surgery).
- Download the Windows 10 ISO via Microsoft’s media creation tool from Microsoft’s software download page (select the Windows 10 tool).
- Mount the ISO, run
setup.exe, choose Keep personal files and apps, and let the upgrade complete. - Afterward, verify updates work with a manual check. An in-place upgrade reinstalls every system component including the update database — corruption cannot survive it. If problems persist even after this, the drive itself is the prime suspect (see Fix 3).
Closing
The Windows Update database error is a bookkeeping failure, and the fix is re-ledgering: rebuild the SoftwareDistribution cache, verify the disk underneath it, re-register the components, and repair the store if needed. The cache rebuild alone fixes most cases in ten minutes. And the prevention is simple — never interrupt updates, keep disk space healthy, and keep cleaner tools away from Windows’ own files — so the database never corrupts again.
