-2

I'm using SQLite Manager for my project but sometimes all my tables disappear suddenly.

So what should I do for this?i'm confused because data in the table gone also.

Please help me..

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47

1 Answers1

0

I found two links that might be of use.

SQLite Table not saving

Are you connecting to a database by name? If not by default the sqlite3 engine will create an in-memory database, and that will disappear once you disconnect.

http://forums.macrumors.com/threads/help-with-no-such-table-error-with-sqlite.1141918/

The second link is interesting because if you do reference a db file, but say your path is incorrect, the engine will create an empty file instead of returning an error.

If the database is opened (and/or created) successfully, then SQLITE_OK is returned.

I hope this helps!

Community
  • 1
  • 1
Doug Dawson
  • 1,254
  • 2
  • 21
  • 37
  • For reference in the my project, i don't add sqlite3 because it's error. I'm using .db for my database in the SQLite Manager. Which path is wrong? – Santi Rahayu Jul 28 '15 at 06:42
  • I'm not sure. I don't use SQLite Manager. I thought it was interesting, though, that if SQLite can't find the DB file, it creates a new, empty one. That might explain why the data and the tables are missing. – Doug Dawson Jul 28 '15 at 20:21