简体   繁体   English

SQLSTATE[HY000]:一般错误:8 尝试写入只读数据库

[英]SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

I am building an application using Laravel 8 and SQLite when I am trying to migrate php artisan migrate this error appears SQLSTATE[HY000]: General error: 8 attempt to write a readonly database .当我尝试迁移php artisan migrate时,我正在使用 Laravel 8 和 SQLite 构建应用程序,出现此错误SQLSTATE[HY000]: General error: 8 attempt to write a readonly database I tried to search for a solution and most of the answers were to give permission to the file using sudo chmod -R 775 but the problem that I am not able to run this command on windows How can I solve this error?我试图寻找解决方案,大多数答案是使用sudo chmod -R 775授予文件权限,但我无法在 Windows 上运行此命令的问题如何解决此错误?

I solved the problem The issue occurred because of the avast antivirus.我解决了问题 问题是由 avast 防病毒软件引起的。 When I disabled it, the error disappeared当我禁用它时,错误消失了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM