Here are the steps required to fix this error:
Clean Temporary Files
Your system temporary files are stored in the directory given below:
Delete App Data
The local temporary data files are stored here:
Delete Temp Program Data
The temporary data in the form of program data is located here:
Cleanup System Junk
It is also wise to clean up all junk residing in system. Sometimes people have 10s of GBs of junk data which makes their systems run extremely slow. Use ST Cleaner to clean your computer and fix sp10C5.tmp error.
Using the MSI Package uninstall MySQL. Pick up the program name from the list of all installed applications and uninstall and reinstall it. Use Settings > System > Apps & Features; or select Programs and Features after pressing Windows Key + X.
Disable Startup Entry
Using Task Manager > Startup tab disable entry of ~sp10C5.tmp file. It may be possible that the file no longer exists, yet the Registry entry still exists. If you’re using an earlier version of Windows, use the MSCONFIG utility.
Scan your Laptop for Virus
Check all partitions of your hard disk and any removable media connected for virus, malware, adware or Trojan.
Delete MySQL Data
Remove any associated data from MySQL installation folder. The following default MySQL installation directory contains your data.
The ProgramData folder can be hidden. To unhide it, open File Explorer Options from Search box, and then delete all associated MySQL data.
Check Folder Security Permissions
Your computer may have failed to access the temporary folders. Modify the folder security settings to provide appropriate read/ write access permissions from the Folder Properties dialog. The temporary folders are already listed at the beginning of this article.