I have installed these before but needed to upgrade to php 5.4.1. However, I had problems so re-installed MySQL 5.5.28 (64 bit version) [the Apache server was already installed in c:\apache and working and the service was starting automatically).
This installed (in c:\MySQL) okay and the service started okay on rebooting the system (with my.ini in the root folder).
I then installed php 5.4.1 into c:\php.
I copied the php.ini-development file to c:\windows and renamed it php.ini and added the following lines to php.ini
doc_root = "c:\apache\htdocs"
extension_dir = "c:\php\ext"
extension = "php_mysql.ini"
I then added the following lines to httpd.conf (in c:\apache\conf)
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
However, when I run phpinfo.php (that calls phpinfo() ) it confirms that I am running php 5.4.1. But running a test script mysql.php that simply connects to mysql, fails.
Can anyone please shed any light on where I have made a mistake. As I said, I have installed these previously with no (well little!!!) problems.