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

Wadar's avatar
Level 1

PHP artisan migrate error

I tried to run php artisan migrate but I'm getting an error: "In Connector.php line 664: could not find driver (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migration) In Connector.php line 67: could not find driver.

Kindly assist me on how to solve this problem because I'm very new in coding & I'm using Windows 10

Thanks & God bless

0 likes
15 replies
bobbybouwmann's avatar

You need a database to actually migrate the database. Are you running Homestead? Are you running a local server?

Wadar's avatar
Level 1

I'm running laravel on wampserver.

bobbybouwmann's avatar

You need to update your .env and connect to the correct host. I believe it needs to be something like this

DB_HOST=127.0.0.1
DB_USERNAME=root
DB_PASSWORD=null
DB_DATABASE=YOUR_DATABASE_HERE

Note: Make sure the database is created!

Wadar's avatar
Level 1

I'm sorry if my question is annoying

DB_DATABASE=YOUR_DATABASE_HERE

How do I create the database, plz

Wadar's avatar
Level 1

I've created a database "okeada" and reran php artisan migrate but I'm still getting the same error, plz assist me

Sergiu17's avatar

Read one more time 3rd comment. You have to open .env file in your root project, and configure your database with your credentials

Wadar's avatar
Level 1

I've created a database named "okeada" & I've edited the .env file with my database credentials, but the error persisted

Plz help

Sergiu17's avatar

@Wadar is the same error? do you have mysql installed on your computer?

Wadar's avatar
Level 1

Yes I'm running mysql 5.7.19 on my wampserver

Sergiu17's avatar

@Wadar storage/logs/laravel.log open and see what's the error, then google or tell us the error :)

Wadar's avatar
Level 1

Error: view ('home') not found

bobbybouwmann's avatar

@Wadar You probably forgot to create the view in resources/views. You should have a home.blade.php file there!

Wadar's avatar
Level 1

K, thanx so much

I'll get here for a feedback soonest. I'm on transit

dave_ac's avatar

Try running

    php artisan migrate --verbose 

to see whats going on

Please or to participate in this conversation.