How do I unlock a SQLite database?

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

    This link solve the problem. : When Sqlite gives : Database locked error It solved my problem may be useful to you.

    And you can use begin transaction and end transaction to not make database locked in future.

提交回复
热议问题