EasyPHP >screenshots >introduction >faq >forums >download


For Windows Vista/Seven issues, please read the FAQ or leave a detailed message


Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL

Posted by: weimbos ()
Date: July 23, 2010 03:51PM

I found a solution in the php net manual. I have copied it in here, maybe it would help other users to spend less time on it. Thank you for the answers, it helped me to find the solution:

[dk.php.net]:

Bruce Kirkpatrick
28-Oct-2009 05:48
On Windows Vista or above, an entry in the Windows/System32/drivers/etc/hosts file causes mysql_connect() connections to "localhost" to timeout and never connect. This happens on php 5.3 and above since it now uses mysql native driver which has changed it connection behavior compared to libmysql.dll in previous versions. It is not a PHP bug, but definitely a configuration issue for users on new windows systems.

To get around this, you must remove the entry like this:
::1 localhost

and make sure you still have:
127.0.0.1 localhost

Also, you could change the code to connect to the ip instead, but that is inconvenient if you have many web sites.

This issue occurs on Windows Vista, Windows 7 and Windows Server 2008.
Navigate: Previous MessageNext Message
Options: ReplyQuote


Subject Views Written By Posted
upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 426 weimbos 07/20/2010 04:04PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 439 Amour 07/20/2010 05:37PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 292 weimbos 07/20/2010 07:25PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 449 Amour 07/20/2010 08:14PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 454 weimbos 07/20/2010 09:48PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 485 Amour 07/20/2010 11:23PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 420 weimbos 07/23/2010 03:51PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 193 umitaygun 08/19/2010 08:57AM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 291 umitaygun 08/19/2010 09:27AM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 309 milton 08/11/2010 07:48PM
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL 216 pai_nitu@yahoo.com 08/17/2010 08:46AM


Your Name: 
Your Email: 
Subject: