Answer the question
In order to leave comments, you need to log in
How to install mssql driver for php?
Hello! Got Centos 7, php7.1, yii2 and ms sql remote database.
In the yii2 config, I specified driverName = mssql and added the required data. When I login to the site, I get an error:
could not find driver
Caused by: PDOException
Answer the question
In order to leave comments, you need to log in
I use freetds.
In /etc/freetds/freetds.conf I write the config, something like:
[test]
host = ТУТ IP
port = 1433
tds version = 8.0
client charset = utf-8
['dsn' => 'dblib:host=test;dbname=Service_db;charset=UTF-8'],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question