I'm working in a OS X and i install a virtual box with sql server, i set the network virtual box to connect.
In mac i install the freetds and if i do this command it connect:
The laravel connection is this:
'dbname' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '2222'),
'database' => env('DB_DATABASE', 'dbname'),
'username' => env('DB_USERNAME', 'xpto'),
'password' => env('DB_PASSWORD', 'xpto1234'),
'charset' => 'utf8',
'prefix' => '',
],
When i run laravel i have the error could not find driver
.
In phpinfo()
i have mssql extension but don't have sqlsrv
.
What is the problem?
Thank you.
via user3242861