Cannot find driver pdo_sqlsrv

前端 未结 1 1676
日久生厌
日久生厌 2021-01-27 00:10

I am using Symfony 3.0, PHP 5.6.17 on Windows 7, with IIS 7.5 and a SQL Server Database (MSSQL).

Like a lot of people, I\'m currently having the pdo_exception:

1条回答
  •  清酒与你
    2021-01-27 00:50

    in this code you notice :

    ;extension=php_sqlsrv_56_nts.dll
    extension=php_pdo_sqlsrv_56_nts.dll
    

    You must decomment first line :

    extension=php_sqlsrv_56_nts.dll
    extension=php_pdo_sqlsrv_56_nts.dll
    

    Also :

    • restart IIS
    • app/console doctrine:cache:clear-metadata
    • app/console doctrine:cache:clear-query
    • app/console doctrine:cache:clear-result
    • app/console cache:clear

    Perhaps you can also read this : Topic StackOverflow for Doctrine MSSQL

    0 讨论(0)
提交回复
热议问题