How do I unlock a SQLite database?

前端 未结 30 1812
栀梦
栀梦 2020-11-22 15:56
sqlite> DELETE FROM mails WHERE (`id` = 71);
SQL error: database is locked

How do I unlock the database so this will work?

30条回答
  •  半阙折子戏
    2020-11-22 16:46

    This error can be thrown if the file is in a remote folder, like a shared folder. I changed the database to a local directory and it worked perfectly.

提交回复
热议问题