我正在laravel homestead上进行数据库迁移,但遇到找不到驱动程序错误
运行以下命令:php artisan migration
在我的PHP.ini中启用了我的pdo-mysql.so
当我安装laravel homestead时,有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