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: