SQLite 的安装
SQLite 是一个零配置的数据库,不需要复杂的安装和配置即可使用。本文将介绍 SQLite 的安装方法。
-
下载 Windows-x64 架构的预编译二进制文件,下载网址为https://www.sqlite.org/download.html,下载的文件为
sqlite-dll-win-x64-3520000.zip,sqlite-tools-win-x64-3520000.zip。 -
安装 SQLite。在目录
D:\opt\app下创建目录D:\opt\app\sqlite。然后将下载的压缩文件加压到该目录中。安装完成后该目录的文件结构如下图所示。D:\opt\app\sqlite>tree /f 文件夹 PATH 列表 卷序列号为 41D3-F2B3 D:. sqldiff.exe sqlite3.def sqlite3.dll sqlite3.exe sqlite3_analyzer.exe sqlite3_rsync.exe -
配置环境变量。将 SQLite 文件的路径配置到 PATH 当中,SQLite 文件路径为
D:/opt/app/sqlite/。 -
检查安装结果。安装完成后,通过命令行命令检查 SQLite 是否安装成功,运行 cmd 命令行模式,输入命令
sqlite3检查安装操作的效果如输出结果所示。cmdMicrosoft Windows [版本 10.0.26100.7171] (c) Microsoft Corporation。保留所有权利。 C:\Users\leolei>sqlite3 SQLite version 3.52.0 2026-03-06 16:01:44 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite>
至此,SQLite 的安装到此结束。