Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem of SQLite3::SQLException: SQL logic error or missing database

Tags:

sqlite

SQLite3::SQLException: SQL logic error or missing database

error when do insert, update and delete operation to tables from browser( that means the create, update and destroy action is failed but the show action is fine ), the same operation in console is OK. I googled this problem and found most of the solutions is to remove duplication in the fixtures, so I removed all the test data from the fixture and restart the server, and it failed again:(
Any advise is appreciated.

like image 949
eric2323223 Avatar asked Dec 05 '25 08:12

eric2323223


1 Answers

It turned out that I forget use "sudo script/server" to get write permission to the database :)

like image 103
eric2323223 Avatar answered Dec 07 '25 16:12

eric2323223