sqlite的.db文件:html
在Windows能夠用Firefox瀏覽器插件打開:sqlite.managerlinux
在Linux中的打開方法以下:web
以CentOS爲例sql
先去sqlite主頁(http://www.sqlite.org),跳轉到下載頁(http://www.sqlite.org/download.html),下載Linux版本的sqlite安裝文件。shell
在Linux的home目錄下新建一個目錄sqlite,將下載好的安裝文件上傳到新建好的目錄/home/sqlite下。數據庫
在當前目錄下依次執行以下命令: 瀏覽器
unzip sqlite-shell-linux-x86-3071300.zip
svg
yum -y sqlite3
spa
sqlite3 -version
插件
導入數據庫:
sqlite3 sample.db
sqlite>
sqlite> .help #顯示命令使用手冊
sqlite> .tables #顯示全部表
sqlite> .mode column #查看錶中的數據,默認顯示方式以豎線分隔"|"
sqlite> .header on #設置以列顯示