Код: Выделить всё
Illuminate\Database\QueryException
could not find driver (Connection: mysql, SQL: select exists (select 1 from information_schema.tables where table_schema = 'fitnessapp' and table_name = 'migrations' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED')) as `exists`)
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825
821▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
822▕ );
823▕ }
824▕
➜ 825▕ throw new QueryException(
826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
827▕ );
828▕ }
829▕ }
1 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66
PDOException::("could not find driver")
2 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66
PDO::__construct()
extension=pdo_mysql
и я настроил .env правильно соответствует данным из базы данных, которую я создал на странице phpmyadmin.
Код: Выделить всё
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fitnessapp
DB_USERNAME=root
DB_PASSWORD=
Подробнее здесь: https://stackoverflow.com/questions/791 ... y-database