我将在Mac OSX中使用MAMP开发Symfony2应用程序,但数据库(Microsoft SQL Server)位于另一台计算机中。
我设置了所有内容(我遵循了此指令http://jesusomar.com/2011/07/22/mamp-php-and-mssql),如果我检查phpinfo(),我看到mssql处于活动状态,但我收到此错误:
[PDOException]
找不到司机
任何帮助或线索?提前致谢
答案 0 :(得分:1)
第一步是检查是否安装了FreeTDS。您可以运行tsql -C
以获取有关计算机中MSSQL库的信息。你应该得到这样的东西:
Version: freetds v0.91
freetds.conf directory: /usr/local/Cellar/freetds/0.91/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.1
iODBC: no
unixodbc: no
SSPI "trusted" logins: no
Kerberos: no
如果未安装FreeTDS,您可以使用Homebrew(例如)执行此操作:brew install freetds
。
现在,您可以使用MssqlBundle连接数据库。