sqlite3:未找到 [英] sqlite3: not found
问题描述
我正在尝试使用此处描述的过程访问我设备上的 sqlite 数据库:如何查看 SQLite 数据库(无模拟器)?
但是,我一直找不到 sqlite3.我假设我打算在行的开头输入带有哈希 (#) 符号的命令.我试过了,一无所获.没有它,我会收到错误消息.
sqlite3.exe 文件肯定存在并且在路径中.
我需要安装什么吗?
一些制造商提供的设备上没有安装 sqlite.如果设备有 arm 处理器,您可以将 sqlite 程序从模拟器复制到您的设备.
启动模拟器并使用android-sdk中
platform-tools
中的adb
命令adb pull/system/xbin/sqlite3
在本教程之后以读/写方式挂载您设备的系统分区:
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
使用
adb
命令将 sqlite3 文件复制到您的设备adb push sqlite3/system/xbin/
重启设备后,sqlite3
命令应该可以工作了.
编辑(从链接页面复制 - 在链接无效的情况下).第 2 步的说明是:
adb shell苏mount -o rw,remount -t yaffs2/dev/block/mtdblock3/system
<块引用>
用适当的设备路径和挂载点替换/dev/block/mtdblock3 &/system,如从 cat/proc/mounts 获得的"
I am trying to reach the sqlite database on my device using the procedure described here: How can i see SQLite Database (No emulator)?
However, I keep on getting sqlite3 not found. I assume I am meant to be entering the commands with the hash (#) sign at the start of the line. I tried with it and got nothing. Without it I get the error message.
The sqlite3.exe file is definitely there and in the path.
Do I have to install something?
Some manufacturers deliver the devices without sqlite being installed on them. You can copy the sqlite program though from a emulator to your device if the device has an arm processor.
Start the emulator and use the
adb
command from theplatform-tools
in android-sdkadb pull /system/xbin/sqlite3
Mount the system partition of your device read/write after this tutorial:
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
Use the
adb
command to copy the sqlite3 file to your deviceadb push sqlite3 /system/xbin/
After you reboot your device the sqlite3
command should work.
Edit (copy from linked page - in the case link becomes invalid). The instructions for step 2 are:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
"Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from cat /proc/mounts"
这篇关于sqlite3:未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!