Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eauyelbekov's avatar

php artisan migrate error

Can someone help me with i'm getting this error when i run php artisan migrate

Illuminate\Database\QueryException could not find driver (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;)

I use laravel herd on Windows

0 likes
1 reply
Shivamyadav's avatar
Level 20

In your .env file check this and uncomment it and configure it according to your setup ..

DB_CONNECTION=mysql //according to your database 
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databaseName
DB_USERNAME=root
DB_PASSWORD=

after that you can run php artisan migrate without any error.

1 like

Please or to participate in this conversation.