Firefox locks places.sqlite

前端 未结 2 1149
猫巷女王i
猫巷女王i 2021-01-01 03:39

Platform: Firefox 3.6.13, Python 2.7 stackless, and Windows 7 (not yet tested on Ubuntu, I will...)

I tried with the apsw library:

conn = apsw.C         


        
相关标签:
2条回答
  • 2021-01-01 04:04

    Firefox uses SQLite to obtain an EXCLUSIVE lock on the database, which is why you cannot open it: http://www.sqlite.org/pragma.html#pragma_locking_mode

    0 讨论(0)
  • 2021-01-01 04:08

    I am not sure about the lock type Firefox uses, but I'd recommend this:

    Copy the Firefox database file to a different temporary location and read it from there (this also lowers the risk of accidentally damaging the original file).

    I haven't had problems with this method yet on Firefox 3.*.

    0 讨论(0)
提交回复
热议问题