coldKingdom's avatar

Malformed SQLite database

Hi there!

I'm trying to use a simple sqlite-database for playing around with homestead and Laravel 5.

All I do is create a empty database.sqlite in the storage dir and then run artisan migrate.

I do get "Migration table created successfully." first and then immediately it fails with the message "General error: 11 database disk image is malformed" .

Have anyone else experienced this and got a nice little solution for it? It would help a lot.

Thank you very much for your help!

0 likes
4 replies
coldKingdom's avatar

I've done some research, but nothing explains why it gets malformed when I run migrate out-of-the-box in Laravel. I did not modify the migrations Laravel comes with at all and I did not add any other migrations.

I do exactly as Jeff does in the videos, it's just strange. This is not really a problem, I could just use MySQL and it's working without a problem. But I don't like things not working without knowing why it fails :)

If I dump out the data and then back into a new database It's working.

wodCZ's avatar

Hi guys,

after hours of Googling & dumping, I've found that it is caused by SCP.

So the solution to malformed sqlite database is to put sqlite file out of synced directory, to /home/vagrant/temp for example.

1 like

Please or to participate in this conversation.