Linux上的App Service可以在php中使用SQLSRV,但缺少ODBC驱动程序 [英] App Service on Linux can use SQLSRV in php but missing ODBC driver

查看:44
本文介绍了Linux上的App Service可以在php中使用SQLSRV,但缺少ODBC驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨〜


我正在Linux上使用App服务和PHP 7.0 docker。


当我尝试在php中使用SQLSRV时并发现该功能正常工作但错过了主要的odbc驱动程序!


此扩展程序需要用于SQL Server的Microsoft ODBC驱动程序与SQL Server进行通信。访问以下URL以下载适用于x64的SQL Server ODBC驱动程序:https://go.microsoft.com/fwlink/?LinkId = 163712


任何人都知道怎么能安装驱动程序?我尝试下面的链接但仍然失败。


https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft- odbc-driver-for-sql-server?view = sql-server-2017





解决方案

您是否有指向您正在使用的图像的链接?您可能需要按照以下第三方博客中所述的步骤拍摄图像并制作一个自定义图像,其中注入了ODBC驱动程序。如果这解决了
问题,请告诉我们。


https://www.progress.com/tutorials/odbc/connect-to- SQL服务器-Linux的上搬运工-经由-ODBC驱动器


Hi~

I am using App service on Linux with PHP 7.0 docker.

When I trying to use SQLSRV in php and find that the function is work but missed the main odbc driver!

This extension requires the Microsoft ODBC Driver for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712

Anyone know how can install the driver? I try the link below but still fail.

https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017


解决方案

Do you have a link to the image that you are using? You will likely need to take the image and make a custom image that has the ODBC driver injected in it by following steps as outlined in the below 3rd party blog. Please let us know if this resolves the issue.

https://www.progress.com/tutorials/odbc/connect-to-sql-server-linux-on-docker-via-odbc-driver


这篇关于Linux上的App Service可以在php中使用SQLSRV,但缺少ODBC驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆