Home >Backend Development >PHP Problem >What to do if there is no mysql information in php

What to do if there is no mysql information in php

藏色散人
藏色散人Original
2021-06-11 09:20:291947browse

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.

What to do if there is no mysql information in php

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.

What to do if there is no mysql information in php

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:

What to do if there is no mysql information in php

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!

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