exception 'PDOException' with message 'could not find driver' SQLSRV Laravel Artisan CLI

前端 未结 2 668
挽巷
挽巷 2021-01-03 01:54

I am running php 5.5 on a Windows Server 2008. I am using the Laravel 4.0 framework for the application. I am connecting to a SQL SRV database via PDO, when executed via htt

2条回答
  •  孤街浪徒
    2021-01-03 02:29

    php cli and php cgi use different php.ini files. Try php -i | grep pdo to see if pdo is installed for your cli, see php -i | grep "Loaded Configuration File"

提交回复
热议问题