开发者

Can't work with MS SQL database in Doctrine 2

开发者 https://www.devze.com 2023-03-14 22:28 出处:网络
I am trying to connect to MS SQL database in Doctrine 2.0, but I get this error all the time: Fatal error: Uncaught exception \'PDOException\' with message \'could not find driver\'.

I am trying to connect to MS SQL database in Doctrine 2.0, but I get this error all the time: Fatal error: Uncaught exception 'PDOException' with message 'could not find driver'.

I have already found that I need to install PDO SqlSrv extension to my local PHP (using Wamp), so I have done it (copied dlls into ext folder, edited php.ini, restarted), but the problem is still the same. I am trying to use some drivers I have downloaded, name of the file is SQLSRV20.EXE. In Doctrine config I have this as a driver: pdo_sqlsrv.

Has anybody same experience or is here just somebody who开发者_Go百科 knows what have I to do to make it work?


I had a heck of a job trying to get PDO driver's working - it turned out i just needed to reboot my system.

..this shouldn't have been necessary but it did work. So if you are sure you have taken all the steps necessary to enable the drivers and it's still not working, give the reboot a shot.

0

精彩评论

暂无评论...
验证码 换一张
取 消