Home >Backend Development >PHP Tutorial >PHP does not support mysql problem solution_PHP tutorial

PHP does not support mysql problem solution_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:43:361166browse

After installing the apache+php+mysql environment, installing a cms prompts that the database connection function is not available. This clearly means that the database is not configured properly and php does not support mysql. Enter php.ini decisively to start processing. The steps are as follows

Today, when I configured apache2.0.x+php5+mysql5 on the machine and deployed the empire cms system, I found that php5 does not support mysql by default.

So I opened the php.ini file and searched for

extension=php_mysql.dll, remove the semicolon in front,

Restarting apache, an error was reported that php_mysql.dll could not be found. This little difficulty doesn’t scare me,

Find the extension_dir pointing to the directory where ext is located, then copy libmysql.dll to the system system32 directory , restart apache, and it was successful.


Okay, I recommend two articles

Windows environment configuration Apache+Mysql+PHP

Windows2003 configuration IIS+FastCGI+PHP5.4.8 diagram:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/633180.htmlTechArticleAfter installing the apache+php+mysql environment, installing a cms prompts that the database connection function is not available. This clearly indicates that the database is It is not configured properly. PHP does not support mysql. Enter php.ini decisively...
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