Home  |  Linux  | Mysql  | PHP  | XML
From:The Phantom Date:Fri Mar  5 14:33:36 2010
Subject:Cannot connect to MySQL

Hello,

First of all, I apologise if I do something wrong, because I'm new to this weird system.

For test purposes, I have installed Apache 2.2.14 with PHP 5.3.1 and MySQL 5.1.44 on Windows 7 Home Premium. However, whenever I try accessing MySQL via PHP, I get the following error:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

MySQL's command line client is still working fine. I think that PHP simply does not see MySQL, though the settings in php.ini seem to be correct. Earlier (before I upgraded to Windows 7 and PHP 5.3) it worked. I've tried turning off the antivirus, because sometimes it may cause timeouts, but it didn't help. Can someone please help me fix this?

_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/
Navigate in group php.db at sever news.php.net
Previous Next


Your recent visits
Re: [PHP-DB] php 5.2.9 and Postgres 8.3.7
Re: [PHP-DB] Postgres query failing, not enough info for debugging...
Re: [PHP-DB] MIME Alternatimve Emails
Re: [PHP-DB] Cannot connect to MySQL
Re: Cannot connect to MySQL



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants