1. The Mysql database is not installed correctly, and the Mysql-related services are not started in the system service (please check the method of correctly installing Mysql)
2. The libmcrypt.dll is missing in the system's system32 (C:windowssystem32) directory. file, the solution is to find libmcrypt.dll in the php directory, copy libmcrypt.dll to the C:windowssystem32 directory, and then restart the web service.
3. In the php.ini file in the C:windows directory, the first ";" in ";extension=php_mcrypt.dll" is not removed, so the corresponding function cannot be used. The solution is to open php.ini file
Find
; extension=php_mcrypt.dll
and change it to
extension=php_mcrypt.dll //Remove the previous; to make it effective
4. There is no Mysql directory Read permissions, the correct directory permissions are as follows:
administrator full control
system full control
user read and run
All other user permissions are deleted (can also be retained, but security Not high, it is recommended to delete it), and then restart the MYsql service and Web service (it is recommended to restart the server after modifying this)
When you have tried all the methods and it still doesn’t work, there is actually one more step. There are few online solutions. , Mine is 2003+IIS+PHP5+MYSQL5
Desktop>My Computer>Right-click Properties>Advanced>Environment Variables>System Variables>New
Name: phprc
Value: c:php (whichever directory your PHP is in)