Home > Article > Backend Development > What to do if there is no mysql information in php
Solution to the problem that there is no mysql information in php: 1. Load the mysql module in php.ini; 2. Add "extension="D:\php5_6\ext"" to the php.ini file.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
What should I do if there is no mysql information in php?
Record once to solve the problem that phpinfo() does not have the mysql module
On a whim, I planned to review ThinkPHP5, but I got stuck before I started, and it appeared when connecting to the database. question.
Error message
I searched on Baidu first, and it was said online that the mysql module was not loaded in php.ini when configuring PHP, but I opened it The php.ini file sees that extension=php_mysql.dll is open. But I used the phpinfo() function to check that there is still no mysql module. I looked at the path of Loaded Configuration File and it was correct, but I was helpless in the end. With the intention of giving it a try, I forcefully added this line to the php.ini file:
Change location
In the end, the error was successfully eliminated!
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if there is no mysql information in php. For more information, please follow other related articles on the PHP Chinese website!