Support the ongoing development of Laravel.io →
Configuration Database

Hi all, I have a problem: can I use sqlsrv driver on my linux distro? In my project the database is Microsoft SQL Server and I'm not able to connect with this. I have tried to install FreeTDS without succes. This is the error:

Error in exception handler: could not find driver in /opt/lampp/htdocs/myproject/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47

and this is my db configuration:

'sqlsrv' => array( 'driver' => 'sqlsrv', 'host' => 'ip', 'database' => 'db_name', 'username' => 'db_user', 'password' => 'db_password', 'prefix' => '', ),

Thank you very much in advance,

gradasso

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gradasso gradasso Joined 21 Apr 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.