🧰 Installing SQLite3 on Windows
In this section, we’ll walk through how to install SQLite3 on a Windows operating system so you can interact with a SQLite database directly from the terminal.
This setup allows you to manipulate database data and run SQL commands outside of your application.
🌐 Downloading SQLite3
Open your web browser and navigate to the official SQLite website:
<https://sqlite.org/>From the homepage, click on Download.
Scroll down the page until you find the section titled Precompiled Binaries for Windows.
📦 Downloading the SQLite Command-Line Tools
Under the Windows section, download the SQLite Tools Winx64 zip file.
This package includes the SQLite3 command-line tools required for 64-bit Windows systems.
📂 Extracting and Placing SQLite3
After the zip file finishes downloading:
Extract the contents of the zip file
Copy the extracted folder
Paste it directly into your C:\ drive
Rename the folder to SQLite3
You should now have the following directory structure:
**C:\\SQLite3**🔗 Adding SQLite3 to the System PATH
To run SQLite3 from anywhere in the terminal, we need to add it to the system PATH.
Follow these steps:
Open System Properties
Click Environment Variables
Under System variables, select Path
Click Edit
Click New
Paste the full path to the SQLite3 folder (for example:
C:\\SQLite3)Click OK, then OK, then OK again to save your changes
This step ensures that Windows knows where to find the SQLite3 executable.
🖥️ Verifying the Installation
Open Command Prompt and type:
sqlite3If the installation was successful, SQLite will display its version information and open the SQLite shell.
This confirms that SQLite3 is properly installed and ready to be used from the terminal.