Nikita
Nikita

Reputation: 5

Could not find driver while migrating

I wanna make a migration by php artisan migrate but I get an error:

In Connection.php line 664:

  could not find driver (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations)

In Connector.php line 67:
  could not find driver

My env file settings:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

Upvotes: 0

Views: 538

Answers (1)

Guillermo Mansilla
Guillermo Mansilla

Reputation: 3889

You need to install php-mysql driver.

Upvotes: 1

Related Questions