sqlite_busy: database is locked 1

sqlite_busy: database is locked

Most probably this error is due to multiple connection,and also  it is a bad practice to use multiple connections when connecting to SQLite

Here is what the above code is Doing:
1. Create a connection to the database file
2. Create a cursor object
3. Execute a SQL statement
4. Commit the changes to the database
5. Close the cursor object
6. Close the connection to the database file

Similar Posts