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. 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. 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 "" Afterwards, php was also loaded successfully. Therefore, in fact, you can completely avoid yourself from messing around and ending up being careless.