username & password in sqlite3

Raja picture Raja · Nov 27, 2009 · Viewed 47.9k times · Source

I am using sqlite3 in a linux machine and I am getting the database without username and password. Can I set a username and password for the same?

Answer

miku picture miku · Nov 27, 2009

No, sqlite3 databases are very lightweight systems. They need no server and all data is stored in one file. A username/password is not supported by the sqlite/sqlite3 package.

In order to achieve simplicity, SQLite has had to sacrifice other characteristics that some people find useful, such as high concurrency, fine-grained access control, a rich set of built-in functions, stored procedures, esoteric SQL language features, XML and/or Java extensions, tera- or peta-byte scalability, and so forth.

(sqlite, when to use)

However, since it's only a file you can encrypt the file with a password to protect your data.