Install SQLSRV driver on Linux, or other UTF-8 capable driver?

前端 未结 4 1134
长情又很酷
长情又很酷 2021-01-12 04:42

SQLSRV is the only driver for PHP that is capable of storing UTF-8 strings into two-byte columns (NVARCHAR instead of VARCHAR) which is cu

4条回答
  •  孤街浪徒
    2021-01-12 05:11

    I Googled a bit more after I read this and I may have found the answer. On Debian:

    # apt-get install freetds-common freetds-bin unixodbc php5-mssql
    

    That will install everything PHP needs for Free TDS and allows me to connect using the sqlsrv driver.

提交回复
热议问题