0

I'm trying to connect to sql server from my mac osx from a php file. I keep getting this error:

Caught exception: exception 'PDOException' with message 'could not find driver'

I installed everything from this website - http://blog.andyhunt.info/2013/11/29/php-mssql-pdo_dblib-freetds-support-on-mac-osx-10-9-mavericks/ but nothing seems to work. It fails at this part in the PHP

$serverName = "xx.xx.xx";
new PDO("dblib:host=$serverName;dbname='xx'", "xx", "xx");
Alexander Vogt
  • 17,879
  • 13
  • 52
  • 68
user2974739
  • 619
  • 1
  • 7
  • 20

0 Answers0