The Database is locked error occurs from an attempt to access a file that is occupied by another process, for example –
You have a word file that you want to delete, but the system is for you
This error usually occurs in the program when an action was incorrectly or suddenly completed, and the session file was left occupied by an incomplete process, and the system does not allow you to access it.
How to fix?
The answer is very simple, close the program completely (not only the web window) and if the reason is in the incorrect completion of the process, then the error will disappear. If there is an error in the handling of a third-party program, then you need to close it. In order to find out which program has occupied the file, try to delete it, windows itself will notify you about who does not allow you to perform the action.