Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 unixodbc 和 FreeTDS 从 linux 连接到 SQL Server。连接成功。此外,当我从命令提示符运行 php 代码时,它会正确执行,但是当我尝试在 Web 浏览器中运行代码时,它会给我错误“无法连接到服务器”。
我已经搜索了这是权限问题。当我授予 odbc.ini、freetds.conf、odbcinst.ini 的所有访问权限时,就可以在包含 Sql 服务器连接代码的 Web 浏览器中访问 php 页面。