<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
        <description> Earlier I have been running on a EasyPHP 1.8. Now I have installed EasyPHP 5.3.2i in another folder. Then I have created at database and restore the data from EasyPHP 1.8. I am using the exact programs, but got an error, Warning: mysql_connect() [function.mysql-connect]: [2002] Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, i (trying to connect via tcp://localhost:3306) in ....

I have look in both FAQ and this forum, and tried a lot to get it to work, but I still get the error. Most of the aswers says change localhost to 127.0.0.1, mI still get the error. i am running windows Vista and explorer 8. Still when I start EasyPHP 1.8 it works ok.

Please help.

Regards Birte</description>
        <link>http://www.easyphp.org/forums/15/147112/147112/_subject_#msg-147112</link>
        <lastBuildDate>Sat, 11 Feb 2012 03:10:33 +0100</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147248/_subject_#msg-147248</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147248/_subject_#msg-147248</link>
            <description><![CDATA[ Hello, thanks<br />
<br />
Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL]]></description>
            <dc:creator>umitaygun</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Thu, 19 Aug 2010 09:27:38 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147120/_subject_#msg-147120</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147120/_subject_#msg-147120</link>
            <description><![CDATA[ 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:<br />
<br />
[<a href="http://dk.php.net/manual/en/function.mysql-connect.php"  rel="nofollow">dk.php.net</a>]:<br />
<br />
Bruce Kirkpatrick<br />
28-Oct-2009 05:48 <br />
On Windows Vista or above, an entry in the Windows/System32/drivers/etc/hosts file causes mysql_connect() connections to &quot;localhost&quot; 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. <br />
<br />
To get around this, you must remove the entry like this: <br />
::1             localhost <br />
<br />
and make sure you still have: <br />
127.0.0.1       localhost <br />
<br />
Also, you could change the code to connect to the ip instead, but that is inconvenient if you have many web sites. <br />
<br />
This issue occurs on Windows Vista, Windows 7 and Windows Server 2008.]]></description>
            <dc:creator>weimbos</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Fri, 23 Jul 2010 15:51:36 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147117/_subject_#msg-147117</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147117/_subject_#msg-147117</link>
            <description><![CDATA[ If I understand, mysql connection is refused ? or access denied ?<br />
<br />
Can you try to replace &quot;localhost&quot; by &quot;127.0.0.1&quot;, and if it is not enough, can you try as root password : &quot;mysql&quot; ?<br />
<br />
I hope it will help you...]]></description>
            <dc:creator>Amour</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 23:23:21 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147116/_subject_#msg-147116</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147116/_subject_#msg-147116</link>
            <description><![CDATA[ Yes phpMyAdmin works okay with root user.<br />
<br />
I have tried: $link = mysql_connect(&quot;localhost&quot;, &quot;root&quot;,&quot;&quot;) or die(&quot;Kunne ikke forbinde : &quot; . mysql_error());<br />
<br />
and<br />
<br />
$link = mysql_connect(&quot;localhost&quot;, &quot;root&quot;) or die(&quot;Kunne ikke forbinde : &quot; . mysql_error());<br />
<br />
same result: Warning: mysql_connect() [function.mysql-connect]: [2002] Et forsøg på at oprette forbindelse mislykkedes, fordi den part, (trying to connect via tcp://localhost:3306) in ....<br />
<br />
here below I have copied users: <br />
<br />
Bruger Vært Kodeord Globale privilegier 1 Tildel Handling <br />
 korthaarklubben localhost Ja ALL PRIVILEGES  Ja  <br />
 root localhost Nej ALL PRIVILEGES  Ja  <br />
 Afmærk alt / Fjern alle mærker <br />
<br />
<br />
As you maybe have noticed I am from Denmark, and som of the text are on danish, I hope you understand it anyway :-)]]></description>
            <dc:creator>weimbos</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 21:48:38 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147115/_subject_#msg-147115</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147115/_subject_#msg-147115</link>
            <description><![CDATA[ We can continue here, maybe an admin will move it ;)<br />
<br />
With default root user, phpMyAdmin is working ?<br />
If yes, can you try root user with your scripts ?]]></description>
            <dc:creator>Amour</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 20:14:43 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147114/_subject_#msg-147114</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147114/_subject_#msg-147114</link>
            <description><![CDATA[ Hello again - that is what I have done, I have not replaced MYSQL files, but export and imported the data -  and created mysql user again. <br />
<br />
Furthermore I can se I have misplaced the question - it should have been in EasyPHP 5.3.2i instead - how can I move the question?]]></description>
            <dc:creator>weimbos</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 19:25:10 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147113/_subject_#msg-147113</guid>
            <title>Re: upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147113/_subject_#msg-147113</link>
            <description><![CDATA[ You can't replace MySQL files, it's better to export all databases with phpMyAdmin, and import into new install (don't export mysql database, but yours yes).<br />
<br />
Also, you will create your mysql users again ;)]]></description>
            <dc:creator>Amour</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 17:37:19 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.easyphp.org/forums/15/147112/147112/_subject_#msg-147112</guid>
            <title>upgrade fra EasyPHP 1.8 to 5.3.2i cannot connect to MYSQL</title>
            <link>http://www.easyphp.org/forums/15/147112/147112/_subject_#msg-147112</link>
            <description><![CDATA[ Earlier I have been running on a EasyPHP 1.8. Now I have installed EasyPHP 5.3.2i in another folder. Then I have created at database and restore the data from EasyPHP 1.8. I am using the exact programs, but got an error, Warning: mysql_connect() [function.mysql-connect]: [2002] Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, i (trying to connect via tcp://localhost:3306) in ....<br />
<br />
I have look in both FAQ and this forum, and tried a lot to get it to work, but I still get the error. Most of the aswers says change localhost to 127.0.0.1, mI still get the error. i am running windows Vista and explorer 8. Still when I start EasyPHP 1.8 it works ok.<br />
<br />
Please help.<br />
<br />
Regards Birte]]></description>
            <dc:creator>weimbos</dc:creator>
            <category>EasyPHP 6.0dev</category>
            <pubDate>Tue, 20 Jul 2010 16:04:44 +0200</pubDate>
        </item>
    </channel>
</rss>

