SQLITE3错误ADB命令行 [英] Sqlite3 error in adb command line

查看:291
本文介绍了SQLITE3错误ADB命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试获取通话记录从Android模拟器细节与亚行的命令行下面。

 亚行外壳
#CD /data/data/com.providers.android.contacts/databases
#sqlite3的contacts.db
SQLite的版本3.5.0
输入。帮助的说明
sqlite的> 。倾倒
。倾倒
PRAGMA foreign_keys = OFF;
BEGIN TRANSACTION;
承诺;

我有我不知道发生什么错误。

这是错误的sqlite3

  PRAGMA foreign_keys = OFF;
BEGIN TRANSACTION;
承诺;


解决方案

当您尝试打开一个非已有的数据库文件时,SQLite会高兴地创建一个空的。

检查该文件确实存在(例如,使用 LS )。

(在您的手机,通话记录可能会在另一个文件中,如 /data/data/com.sec.android.provider.logsprovider/databases/logs.db /data/data/com.android.providers.contacts/databases/contacts2.db

I try to fetch call log details from android emulator with below adb command line.

adb shell
#cd /data/data/com.providers.android.contacts/databases
# sqlite3 contacts.db
SQLite version 3.5.0
Enter ".help" for instructions
sqlite> .dump
.dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
COMMIT;

I have an error that i don't know what happen.

This is error in sqlite3

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
COMMIT;

解决方案

When you try to open a non-exisiting database file, SQLite will happily create an empty one.

Check that the file actually exists (e.g., with ls).

(On your phone, the call log might be in another file such as /data/data/com.sec.android.provider.logsprovider/databases/logs.db or /data/data/com.android.providers.contacts/databases/contacts2.db.)

这篇关于SQLITE3错误ADB命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆