Estou tentando conectar em banco sql server, já coloquei no php.ini as extensões. Quando rodo no terminal
php artisan migrate
retorna "could not find driver", o que está faltando?
extension=php_pdo_sqlsrv_71_ts_x86
extension=php_sqlsrv_71_ts_x86
No meu arquivo .env
DB_CONNECTION=sqlsrv
DB_HOST=xxx
DB_PORT=1433
DB_DATABASE=database
DB_USERNAME=username
DB_PASSWORD=password
Retorno no terminal
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_71_ts_x86' (tried: ext\php_pdo_sqlsrv_71_ts_x86 (%1 nÒo Ú um aplicativo Win32 vßlido.), ext\php_php_pdo_sqlsrv_71_ts_x86.dll (NÒo foi possÝvel encontrar o m¾dulo especificado.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_71_ts_x86' (tried: ext\php_sqlsrv_71_ts_x86 (%1 nÒo Ú um aplicativo Win32 vßlido.), ext\php_php_sqlsrv_71_ts_x86.dll (NÒo foi possÝvel encontrar o m¾dulo especificado.)) in Unknown on line 0
Illuminate\Database\QueryException : could not find driver (SQL: select * from sysobjects where type = 'U' and name = migrations)
at C:\AppServ\www\extranetPacto\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:\AppServ\www\extranetPacto\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31
2 PDOException::("could not find driver")
C:\AppServ\www\extranetPacto\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27
Please use the argument -v to see more details.
Whoops\Exception\ErrorException : PHP Startup: Unable to load dynamic library 'php_sqlsrv_71_ts_x86' (tried: ext\php_sqlsrv_71_ts_x86 (%1 no um aplicativo Win32 vlido.), ext\php_php_sqlsrv_71_ts_x86.dll (No foi possvel encontrar o mdulo especificado.))
at Unknown:0
1|