Windows command line shell for sqlite3

The documentation claims that there is a command line shell for sqlite3: "To run the sqlite3 program, simply enter" sqlite3 "and then name the file containing the SQLite database." When I try to do this, on the Windows command line I get the error message β€œsqlite3” is not recognized as an internal or external command, operating program or batch file. ”In Windows Explorer, severalβ€œ Sqlite3 ”folders are displayed in different places:

backends(C:/Python26/Lib/site-packages/django/db) Lib(C:/Python26) backends(C:/Django-1.1.1/Django-1.1.1/build/lib/django/db backends(C:/Django-1.1.1/Django-1.1.1/django/db) 

How can I access the shell, can anyone help?

+8
sqlite3
source share
4 answers

Download sqlite3 binary for windows here . Unzip it and place it somewhere in your path.

+15
source share

This is the error message you get if you try to run any executable file that is not in your current directory or path.

To fix the problem, find the SQLite executable (SQLITE3.EXE) and run it from the directory in which it is located, or add SQLITE3.EXE to the PATH environment variable.

+4
source share

You must correctly set the PATH environment variable to include one of the places sqlite3.exe is located. Normally, SQLite seems to set this environment variable during installation, but a list of paths found indicates that it only appeared as a library for various other applications. Therefore, it is not surprising that the path is not given.

+1
source share

I have sqlite3 on my machine, and as others have said, it should be located in the folder indicated by your PATH environment variable. Since I use it a lot, I dropped it in windows \ system32, where I host many utilities such as pstools.

+1
source share

Source: https://habr.com/ru/post/639896/


All Articles