Не удалось найти водителя pdo-mysql laravel housetead - PullRequest
0 голосов
/ 07 февраля 2019

Я запускаю миграцию базы данных на laravel hometead и получаю сообщение об ошибке «Не могу найти драйвер»

, выполняю следующую команду: php artisan migrate

мой pdo-mysql.so включенв моем PHP.ini

Когда я устанавливаю laravel hometead, есть 4 разные версии php 5.6 7.1 7.2 7.3

phpinfo говорит, что использует 7.3

php artisan migrate

Illuminate\Database\QueryException  : could not find driver (SQL: select 
* from information_schema.tables where table_schema = sim and table_name 
= migrations)

at C:\laravel- 
projects\sim\vendor\laravel\framework\src\
Illuminate\Database\Connection.php:664
660|         // If an exception occurs when attempting to run a query, 
we'll format the error
661|         // message to include the bindings with SQL, which will make 
this exception a
662|         // lot more helpful to the developer instead of just the 
database's errors.
663|         catch (Exception $e) {
664|             throw new QueryException(
665|                 $query, $this->prepareBindings($bindings), $e
666|             );
667|         }
668|

Exception trace:

1   Doctrine\DBAL\Driver\PDOException::("could not find driver")
  C:\laravel-projects\sim\vendor\doctrine\dbal\lib\
Doctrine\DBAL\Driver\PDOConnection.php:31

2   PDOException::("could not find driver")
  C:\laravel-projects\sim\vendor\doctrine\dbal
\lib\Doctrine\DBAL\Driver\PDOConnection.php:27
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...