Laravel php工匠迁移不起作用

当我尝试在Laravel中使用’php artisan migrate’时,我收到2个错误:

[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database (SQL: select * from sqlite_master where type = ‘table’ and name = migrations)

[PDOException] SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database

我在尝试迁移之前创建了一个storage / database.sqlite文件.我还编辑了config / database.php,使得默认= sqlite.我正在使用Windows并安装了sqlite3.

有没有人遇到这个/知道怎么过去呢?

解决方法:

我有相同的结果,在我的情况下,/ database / database.sqlite文件不为空.

我删除了内容重新
php artisan migrate和迁移表已成功创建.

相关文章

SQLite架构简单,又有Json计算能力,有时会承担Json文件/RES...
使用Python操作内置数据库SQLite以及MySQL数据库。
破解微信数据库密码,用python导出微信聊天记录
(Unity)SQLite 是一个软件库,实现了自给自足的、无服务器...
安卓开发,利用SQLite实现登陆注册功能