Laravel 5 PDOException无法找到驱动程序:sqlsrv

时间:2017-05-30 09:51:21

标签: sql-server laravel-5

我可以运行该应用程序,但是当需要数据库连接时,我收到了此错误

PDOException in Connector.php line 55:
could not find driver
in Connector.php line 55
at PDO->__construct('sqlsrv:Server=192.168.1.43;Database=RKNandi', 'rajwebuser', 'Rajkumar1', array('0', '2', '0', false)) in Connector.php line 55
at Connector->createConnection('sqlsrv:Server=192.168.1.43;Database=SSSPL', array('driver' => 'sqlsrv', 'host' => '192.168.5.43', 'database' => 'RKNandi', 'username' => 'rajwebuser', 'password' => 'Rajkumar1', 'charset' => 'UTF8', 'prefix' => '', 'name' => 'sqlsrv'), array('0', '2', '0', false)) in SqlServerConnector.php line 32

如何解决?

0 个答案:

没有答案