转载 Try these: - edit the "php.ini" file and check that "extension_dir" entry is set- in "php.ini", go to Windows Extensions area and check that extension=php_mysql.dll line exists- on hard disk, go to the folder set by "extension_dir" at first step and check that "php_mysql.dll" file is copied there.Because the MySQL changed the licensing type some time ago the PHP guys were forced by this new license to not distribute the php_mysql module as an active module default into their configuration. This problem created a lots of confusion because like into your case you have to enable the extension as my colleague has already described you but you also have to copy the mysql client library against which this module was compiled from the PHP5 distro folder into the C:/Windows/system32 or to any other path that is it present on your server PATH configuration otherwise the module won't function.
Try these: - edit the "php.ini" file and check that "extension_dir" entry is set- in "php.ini", go to Windows Extensions area and check that extension=php_mysql.dll line exists- on hard disk, go to the folder set by "extension_dir" at first step and check that "php_mysql.dll" file is copied there.Because the MySQL changed the licensing type some time ago the PHP guys were forced by this new license to not distribute the php_mysql module as an active module default into their configuration. This problem created a lots of confusion because like into your case you have to enable the extension as my colleague has already described you but you also have to copy the mysql client library against which this module was compiled from the PHP5 distro folder into the C:/Windows/system32 or to any other path that is it present on your server PATH configuration otherwise the module won't function.