Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:sqlitecommandlineutility [2007/01/18 10:04] xueshenghowtos:sqlitecommandlineutility [2009/03/10 16:54] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== SQLite command-line utility ====== ====== SQLite command-line utility ======
-==== (sqlite.exe) ==== 
  
-Starting with the 0.21.0 release POPFile uses a SQLite 2.x database to store the corpus, the magnets and other data. POPFile's SQLite database is a single file, usually called 'popfile.db'. The SQLite library includes a simple command-line utility called sqlite.exe which is shipped with the Windows version of POPFile.+==== Introduction ====
  
-**Although the SQLite website describes this as "simple" utility, it is very powerful so any mistakes made when using it could seriously damage the POPFile database and stop POPFile from working properly.**+Starting with POPFile version 0.21.0, POPFile uses a SQLite database to store the POPFile corpus, magnets and other data. POPFile'SQLite database is single fileusually named ''popfile.db''. At first POPFile used SQLite version 2.x databases but with the 1.1.0 release it switched to the newer SQLite version 3.x format for the database.
  
-The POPFile installer creates a shortcut ("Run SQLite utility") in the 'User Data' folder to make it easy to use the SQLite command-line utility. The utility runs in a DOS-box and the necessary commands have to be typed into the DOS-box to make the utility do anything, so the installer provides some user-friendly front-ends for this utility which can be used instead:+The Windows version of POPFile comes with a simple SQLite command-line utility. The Windows POPFile installer creates a shortcut ("Run SQLite utility") in the 'User Data' folder to make it easy to use the SQLite command-line utility. The utility runs in a Command Prompt window. You must type the necessary commands into this window to make the utility do anything. The Windows POPFile installer provides some user-friendly front-end utilities you can use rather than having to memorize all of the command syntax:
  
-  * [[howtos:SQLiteStatusCheck|POPFile SQLite Database Status Check utility]] +  * [[/docs/howtos:sqlitestatuscheck | POPFile SQLite Database Status Check utility]] 
-  * [[howtos:RunSQLite|POPFile Run SQLite Utility]]+  * [[/docs/howtos:runsqlite | POPFile Run SQLite Utility]]
  
-The sqlite.exe command-line utility allows advanced users to manually enter and execute SQL commands against an SQLite databaseA brief [[http://www.hwaci.com/sw/sqlite/sqlite.html| introduction]] on how to use this utility can be found on the SQLite website.+SQLite 2.and 3.x databases are not compatible therefore POPFile 1.1.0 (or later) will automatically upgrade an existing SQLite 2.x database to the new 3.x format (and save the old database as ''popfile.db.backup'').
  
-**Be very careful if you decide to use this utility - a simple mistake made while using it could stop POPFile from working.**+There are two versions of the SQLite command-line utility: ''sqlite3.exe'' works with SQLite 3.x format databases and ''sqlite.exe'' works with SQLite 2.x databases. The shortcuts created by the Windows installer will automatically use the appropriate version of the SQLite command-line utility.
  
 +Two common uses for the SQLite command-line utility are: checking the integrity of an SQLite database, and defragmenting an SQLite database. The utility also allows advanced users to manually enter and execute SQL commands to manipulate an SQLite database.
 +
 +==== sqlite3.exe (for use with POPFile 1.1.0 or later) ====
 +
 +A [[http://www.sqlite.org/sqlite.html | tutorial]] showing how to use this utility is on the SQLite website. Note that this tutorial is for the SQLite 3.x version of the command-line utility (i.e. it applies to POPFile 1.1.0 or later).
 +
 +**CAUTION**: Although the SQLite web site describes the SQLite command-line utility as a "simple" utility, it is actually very powerful. If you use it incorrectly, you could seriously damage the POPFile database, preventing POPFile from working properly.
 +
 +==== sqlite.exe (for use with POPFile 0.21.0 to 1.0.1) ====
 +
 +**NOTE**: Binary versions of the SQLite command-line utility which are compatible with SQLite 2.x format databases as used by POPFile 0.21.0 to 1.0.1 are no longer listed on the [[http://www.sqlite.org/download.html | SQLite download page]] though the source code for SQLite 2.8 is still available.
 +
 +If you want to know more about the SQLite 2.x version of the SQLite command-line utility used by POPFile releases 0.21.0 to 1.0.1, a tutorial based on old information from the SQLite web site, is available [[sqlite_tutorial | here]].
 +
 +**CAUTION**: Although the SQLite web site describes the SQLite command-line utility as a "simple" utility, it is actually very powerful. If you use it incorrectly, you could seriously damage the POPFile database, preventing POPFile from working properly.
 
howtos/sqlitecommandlineutility.1169114683.txt.gz · Last modified: 2008/02/08 19:49 (external edit)
Old revisions

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License