Home  >  Article  >  Backend Development  >  How to solve the problem that PHP cannot connect to mssql?

How to solve the problem that PHP cannot connect to mssql?

Guanhui
GuanhuiOriginal
2020-07-24 13:23:361854browse

How to solve the problem that PHP cannot connect to mssql?

How to solve the problem that PHP cannot connect to mssql?

1. Confirm that the "php_mssql" extension of "php.ini" is turned on;

2. Confirm that the mssql module is loaded and whether the relevant functions exist. In "phpinfo()" You can see relevant information in;

3. Check whether the "host" in the connection parameters is correct.

mssql

ms SQL refers to Microsoft's SQLServer database server. It is a database platform that provides a complete solution for the database from server to terminal. , the database server part is a database management system used to establish, use and maintain databases. SQL Server was not a product developed by Microsoft itself at the beginning, but was produced in cooperation with Sybase in order to compete with IBM. Its earliest developer was Sybase, and Microsoft also cooperated with Sybase in the development of SQL Server 4.2 version. , Microsoft also ported SQL Server 4.2 to Windows NT (version 3.1 at the time). After terminating the partnership with Sybase, it independently developed SQL Server version 6.0. All subsequent SQL Servers were developed by Microsoft itself.

Recommended tutorial: "PHP"

The above is the detailed content of How to solve the problem that PHP cannot connect to mssql?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn