Home > Backend Development > PHP Tutorial > PHP cannot load the module configuration solution of mysql_PHP tutorial

PHP cannot load the module configuration solution of mysql_PHP tutorial

WBOY
Release: 2016-07-13 17:08:24
Original
1232 people have browsed it

The article introduces the discovery that php cannot load the module configuration of mysql when building the environment. Now based on the problem, we will find solutions and some minor problems caused by the solutions. When configuring php today, I found that mysql was not configured, and wordpress prompted me that I need a mysql module. After searching on Google, most of them said that php.ini was not loaded. After looking at phpinfo(), I did not find the mysql module. ​ Later so-called solutions such as "put php.ini" into the C:Windows environment variable are unreliable. . . . . Even copy the dll of the ext folder to System32 etc. It’s all unreliable. I didn’t realize the problem until I saw this post.

"The reason mysql cannot be found is that the mysql runtime library cannot be found. Open the mysql installation folder, find libmySQL.dll in the bin folder, and copy it to the system32 folder so that the mysql runtime library can be Register in the system and then restart Apache”

I found it in the MySQLMySQL Server 5.5lib directory In fact, when you configure it yourself, you should find that it is not an environment variable or it is not loaded into php.ini or it is not loaded into extension. Why do you say that? First, the php configuration path has been added to the Apache configuration. PHP cannot load the module configuration solution of mysql_PHP tutorial At the same time, phpinfo() also shows that it is loaded. Interested students can try the difference between php.ini when it exists and when it does not exist. ​ PHP cannot load the module configuration solution of mysql_PHP tutorial ​ Secondly, I have indeed configured extension_dir in php.ini. If this thing is meaningless, then why do I have this option in the configuration file? Please note here that its separator is exactly the opposite of apache's, which is "" PHP cannot load the module configuration solution of mysql_PHP tutorial Afterwards, php was also loaded successfully. ​ PHP cannot load the module configuration solution of mysql_PHP tutorial ​ Therefore, in fact, you can completely avoid yourself from messing around and ending up being careless.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629837.htmlTechArticleThe article introduces the discovery that php cannot load the module configuration of mysql when making the environment. Now we will find a solution based on the problem. method and some minor problems caused by the solution. Configuration today...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template