【解决】unable to open database file
2016-10-05 23:48
344 查看
问题描述
使用php连接sqlite数据库,可以使用查询操作,无法插入或修改数据项目目录为
/usr/share/nginx/html
数据文件位于
/usr/share/nginx/html/database/test.db
问题分析
sqlite数据库进行写操作时,会先生成缓存文件,对缓存进行操作生成的缓存文件的读写权限默认和父目录相同
1. 修改项目权限
chmod 777 /usr/share/nginx/html
2. 修改数据文件权限
chmod 777 /usr/share/nginx/html/database chmod 666 /usr/share/nginx/html/database/test.db
相关文章推荐
- Flask sqlite3.OperationalError: unable to open database file解决方法
- sqlite3.OperationalError: unable to open database file 解决办法
- sqlite3.OperationalError: unable to open database file 解决办法
- Django-想说爱你真不容易--解决“Unable to open database file”(原创)
- unable to open database file的原因与解决
- 手把手教你:Ubuntu+django+apache下配置网页错误OperationalError: Unable to Open Database File 的解决方法
- 解决sqllite的'unable to open database file'错误
- PHP PDO sqlite ,Unable to Open database file的解决方法
- Ubuntu+django+apache下配置网页错误OperationalError: Unable to Open Database File 的解决方法
- [SecureCRT] 解决 securecrt failed to open the host key database file 的问题
- [问题解决] initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock
- useradd: unable to open password file 解决办法 useradd: error opening group file解决办法
- sqlite的一个Unable to Open database file的坑爹错误
- Unable to open file dclusr60.lib解决方法
- ORA-31640: unable to open dump file 问题解决
- sqlite 关于unable to open database file的问题。
- Turbo C 编程中“Unable to open include file 'stdio.h'”问题的解决
- eclipse、android开发 logcat出现 Unable to open log device ‘/dev/log/main’: No such file or directory 解决办法
- android学习历程——“Unable to open log device '/dev/log/main': No such file or directory”错误解决方法
- android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file