IPSH mysql_connect 2002 Verbindung ist fehlgeschlagen

Hallo,
Nach Update auf die Version 2.2 und Update der neuesten IPSHomecontrol hatte ich folgenden Fehler:
Warning: mysql_connect() [function.mysql-connect]: [2002] Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle na (trying to connect via tcp://localhost:3306) in C:\IP-Symcon\web\ipsh2007r2\shared\connection.php on line 21

Warning: mysql_connect() [function.mysql-connect]: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. in C:\IP-Symcon\web\ipsh2007r2\shared\connection.php on line 21

Fatal error: Maximum execution time of 30 seconds exceeded in C:\IP-Symcon\web\ipsh2007r2\shared\connection.php on line 21

Lösung (funktioniert bei mir):
im SQL Server anderen user anlegen (z.b.: admin + Password)
in c:\IP-Symcon host.ini auf IP des SQL Servers ändern (statt localhost)
Password.ini + user.ini anpassen
alles andere hat bei mir nicht funktioniert (Win7 32Bit + Win7 64Bit)
Sabl

hmm, das ist strange. bei mir gab es keine probleme damit (live und demosystem).

würde mir das mal gerne ansehen. ist das möglich?

Der Fehler war schnell gefunden :).

Im Windows 7 (übrigens auch Windows Server 2008R2 auch) ist in der c:\windows\system32\drivers\etc\hosts der folgende Eintrag:

127.0.0.1 localhost

::1 localhost

Hier muß einfach der Kommentar entfernt werden.

Der Fehler ließ sich schnell finden - wenn man einen Ping auf localhost macht, kam keine Antwort von 127.0.0.1, sondern von ::1:

Alternativ kann man natürlich auch in der ip-symcon\host.ini die richtige IP des Rechners oder 127.0.0.1 eintragen (Bitte kein Enter nach dem Wert, sonst gibt das auch einen Fehler).

Ob der Fehler auch unter Vista oder Windows Server 2008 (ohne R2 ist, kann ich nicht sagen).

Viel Erfolg.

Hello,

IPS 2.2 running (build 1685), webfront on :80 and up and running.
Have done a full install of ipshomecontrol.
I have the same problem with the 2010 version on win7 32b home edition:

Warning: mysql_connect() [function.mysql-connect]: [2002] Een verbindingspoging is mislukt omdat de verbonden party niet c (trying to connect via tcp://127.0.0.1:3306) in C:\IP-Symcon\webfront\ipsh2010\shared\connection.php on line 21

Warning: mysql_connect() [function.mysql-connect]: Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord. in C:\IP-Symcon\webfront\ipsh2010\shared\connection.php on line 21

Fatal error: Maximum execution time of 30 seconds exceeded in C:\IP-Symcon\webfront\ipsh2010\shared\connection.php on line 21

copied the web folder to the webfront folder…
changed the host file (removed the # before 127.0.0.1 and before …1)
changed the host file in c:\ip-symcon (as you can see).

stil not working (dutch and germen language versucht)

HELP!!!
Robert

please take a look at the other posts, win7 has in the c:/windows/system32/drivers/etc/hosts the entry for 127.0.0.1 marked, please remove the „;“ for the line (from ; 127.0.0.1 localhost to 127.0.0.1 localhost) and try to ping localhost. you can try before this in the hosts.ini rename the localhost to 127.0.0.1, but after the line please no enter).

save the files(s) and try to reach the ipshomecontrol admininterface.

thanks.