I cannot connect to a MSSQL database trough docker php-zendserver container running a zendserver application.
We are using php-zendserver:8.5-php5.6
Did activate pdo_dblib, mssql and odbc extensions inside zendserver.
It did work before until we moved everything to docker. And we have not changed any credentials, (it is still working on production and test with the same credentials).
Our application are running on the zendserver container enviroment and we can access it trough the browser.
We are trying to make a connection to MSSQL using Zend_Db
So my guess is that the Mssql library are not setuped correctly on the docker container, and I would really appreciate some help on this issue.
Code: Select all
$db = \Zend_Db::factory('Pdo_Mssql', array( "username" => $config['username'], "password" => $config['password'], "dbname" => $config['dbname'], "host" => $config['host'], "port" => $config['port'], "pdoType" => 'dblib' ));