A
A
Andrey Aksenov2019-10-25 12:16:59
PHP
Andrey Aksenov, 2019-10-25 12:16:59

How to connect to mssl in php7.2?

Unable to connect to ms sql server 2000 database.
have code:

$dbh = new PDO ("odbc:Server=10.1.1.1,1433;Database=database", "user", 'password');

gives an error:
PHP Warning: PHP Startup: Unable to load dynamic library 'msql.so'.... unixODBC
packages installed freetds freetds-devel freetds-libs php-pdo-dblib
no msql.so file. How can I fix the error or implement a connection to the database?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question