SQLite打开错误“无法打开数据库”; [英] Sqlite opening error "Unable to open database"

查看:594
本文介绍了SQLite打开错误“无法打开数据库”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用日历控件按日期存储信息。

In my app, I use a calendar control to store the information date-wise.

日历控件的链接 http://blog.webscale.co.in/?p=244

例如,当前选择的月份是2010年10月现在,如果我切换回2010年4月并尝试重新回到2010年10月&从我存储在十月份的日历中访问数据,然后得到错误消息:

For example, the current selected month is October 2010. Now if I switch back to April 2010 and try to comeback to October 2010 & access data from calendar that I stored in the month of October then I get the Error that says:


Sqlite打开错误:无法打开数据库file

Sqlite opening Error : unable to open database file

工作正常,无需在几个月之间切换。

It works fine without switching between months.

基本故障排除我已经完成的检查是:

The basic troubleshooting and checks which I have already done are:


  1. 我对数据库文件权限进行了更改,并包含目录的权限,但是没有不能帮我。

  1. I have made changes to database file permission and containing directory's permission but it didn't help me.

数据库文件路径也正确,数据库也不为空。

Database file path is also proper and database is not empty.

出什么问题了?

推荐答案

我得到了答案;我打开了数据库,但没有关闭它,并且数据库的多个实例发生冲突并导致数据库被锁定。

I got the answer; I opened the database but wasn't closing it and multiple instances of database were conflicting and causing the database to be locked.

这篇关于SQLite打开错误“无法打开数据库”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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