If you already have php and Mysql installed in your system/server and still getting the error, some changes need to be made in your php.ini file,
Open your php.ini file and search for extension=php_mysql.dll, uncomment the line (remove the semicolon in the beginning of the line)
Then search for extension_dir in php.ini file and change extension_dir =”C:phpext” if it is not.
Note : You need two sql dll files, php_mysql.dll and libmysql.dll which together provide you PHP mysql extension, first check in ext folder (C:phpext) in your PHP installation location.
if you don’t have ext folder, you need to download PHP zip version (http://windows.php.net/download/) containing those required files. Then copy ext folder to your PHP installation location,also copy libmysql.dll to your PHP installation location.
libmysql.dll should be reachable in your system, so copy it to c:windowssystem32.
Open your php.ini file and search for extension=php_mysql.dll, uncomment the line (remove the semicolon in the beginning of the line)
Then search for extension_dir in php.ini file and change extension_dir =”C:phpext” if it is not.
Note : You need two sql dll files, php_mysql.dll and libmysql.dll which together provide you PHP mysql extension, first check in ext folder (C:phpext) in your PHP installation location.
if you don’t have ext folder, you need to download PHP zip version (http://windows.php.net/download/) containing those required files. Then copy ext folder to your PHP installation location,also copy libmysql.dll to your PHP installation location.
libmysql.dll should be reachable in your system, so copy it to c:windowssystem32.
Once you have done the above steps, restart IIS. That will work…
COMMENTS