Copy the libmysql.dll file which should be in the bin directory of the MySql installation directory to C:\winnt\, then uncomment the lin in php.ini extension=php_mysql.dll.