`koha-restore` command outputs an error about being unable to drop the user: `ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'koha_library'@'%'` This can be avoided by adding `IF EXISTS` to the command (as has been done in [`koha-remove`](https://github.com/Koha-Community/Koha/blob/a5a3a330cfc7c7d6c35db13326745dabf8fe0df3/debian/scripts/koha-remove#L69-70) Tested on Ubuntu 20.04 LTS with Koha 21.05.02.003 and 21.05.03.001 N.B. This bug was originally filed as a [PR on GitHub](https://github.com/Koha-Community/Koha/pull/42)
Created attachment 124853 [details] [review] Patch (from GitHub - https://github.com/Koha-Community/Koha/pull/42.patch)
I can confirm that this patch removed that error for me using Debian 11.0 and koha-common 21.05.04-1
Looks like this was solved by bug 10517. *** This bug has been marked as a duplicate of bug 10517 ***