How do I unlock a SQLite database?

前端 未结 30 1836
栀梦
栀梦 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:48

    lsof command on my Linux environment helped me to figure it out that a process was hanging keeping the file open.
    Killed the process and problem was solved.

提交回复
热议问题