Answer the question
In order to leave comments, you need to log in
How to fix laravel migration error?
when executing the php artisan migrate / php artisan migrate:refresh / php artisan migrate --seed command, an error appears:
Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = app and table_name = migrations and table_type = 'BASE TABLE')
at C:\Users\Admin\OpenServer\OSPanel\domains\project \vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|
Exception trace:
1 Doctrine\DBAL\Driver\PDOException::("could not find driver")
C:\Users\Admin\OpenServer\OSPanel\domains\project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\ PDOConnection.php:31
2 PDOException::("could not find driver")
C:\Users\Admin\OpenServer\OSPanel\domains\project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php: 27
Please use the argument -v to see more details.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question