Save the following code as phpinfo.php:
<?php
Phpinfo ();
?>
Mysql
-------
MySQL Support Enabled
Active Persistent Links 1
Active Links 1
Client API version 5.0.37
-------
If you do not see it and you are sure that the database is installed, you may need to load the Libmysql.dll on the server:
Open httpd.conf (This is Apache configuration file), add:
LoadFile "Your PHP directory/libmysql.dll"
Then restart the HTTP service.
After I did what he said, I couldn't see the information about MySQL, but the database did run correctly.
So search the "phpinfo () without MySQL" result is the need to D:php5ext directory in the Php_mysql.dll, Php_mysqli.dll and the upper directory of the Libmysql.dll copy to System32
and add the PHP directory to the Windows system path,
Under Windows Nt,2000,xp and 2003:
Go to Control Panel and open the System icon (Start-> setup-> Control Panel-> System, Windows xp/2003 is: Start-> Control Panel-> System)
Select the Advanced tab page
Click on the "Environment variables" button
In the System Variables column
Locate the Path (you may need to scroll down to find it)
Double-click the Path of the mouse
In the end add your PHP directory, including the front of the ";" (For example:; c:php)
Click "OK" and restart the computer