I am trying to learn PHP and MySQL and am not getting very far. I have installed EasyPHP-5.3.2i on a Windows 7 64-bit machine. After fixing the install problems with the 64-bit installation I can run EasyPHP fine and manage the db with PHPMyAdmin. The only problem comes in trying to connect using a php program. The connection instruction times out after 30 seconds. I have checked that the browser and EasyPHP can get through the firewall but that does no good. The attached code does not get to the check that the connection was created. I have spent a day and a half on this without significant progress. Suggestions are greatly appreciated.
$host = 'localhost';
$user = 'website';
$password = 'w9EyhrM4Gu6sUxSP';
$database = 'tlc';
$db_server = mysql_connect($host,$user,$password);
if (!$db_server) die ("Unable to connect to MySQL: ".mysql_error());