Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
mgkpro

Datenbankanbindung

Recommended Posts

Hallo,

ich benutze das IPB schon seit Jahren erfolgreich und hatte nie Probleme bei der Installation (Provider ist 1&1). Wir haben nun auf einen eigenen Server umgestellt, der folgenden localhost-Aufruf hat: localhost:/tmp/mysql5.sock

Es erscheint dann folgende Fehlermeldung des Installers: unknown MySql server host `localhost:/tmp/mysql5.sock` (1)

Weiss jemand Rat? (die Datenbank funktioniert einwandfrei und nur die Angabe: `localhost`habe ich auch schon probiert).

Viele Grüße

Mike

post-1805-1261089134,1_thumb.jpg

Share this post


Link to post

Hi Mike,

wenn du einen eigenen rootserver mit php/mysql hast, dann sollte der db-server eintrage "localhost" lauten.

Du mußt natürlich vorher eine Datenbank und den entsprechenden db-admin account (im plesk) einrichten.

Ciao

Chris

Share this post


Link to post

Hi Chris,

danke für deinen Beitrag.

Klar hast du recht, normalerweise funzt die Datenbankansprache mit "localhost" auch. Seit ich mir das mit dem Server angetan habe, ist alles anders. So auch die Datenbanken, die wollen mit "localhost:/tmp/mysql5.sock" angesprochen werden. Fast alle Applikationen haben kein Problem damit, nur das IBP will nicht! Noch irgendeine Idee?

Share this post


Link to post

Hi Chris,

das ist der "single core managed server" von 1&1.

Der support da bemüht sich ja schon, aber trotz allem lautet der Datenbankaufruf: localhost:/tmp/mysql5.sock

Da sieht man´s mal wieder...wenn man nicht in das "Kleingedruckte" guckt...

Gruß

Mike

Share this post


Link to post

Hast du die Möglichkeit das IP.Board erst lokal zu installieren, dann auf dem Server die SQL einzuspielen?

Dann versuch doch mal folgende Einstellungen in der conf_global.php hinzuzufügen:

$INFO['sql_port'] = /tmp/mysql5.sock;

Host bleibt dann auf "localhost". Sollte klappen.

Share this post


Link to post

Ich hatte das gleiche Problem, um das zu umgehen, muss man die Datei 

<Pfad zu deinem [url="https://www.invisionpower.com/clients/index.php?app=nexus&module=promotion&section=referral&id=5636&direct=aHR0cDovL3d3dy5pbnZpc2lvbnBvd2VyLmNvbS9hcHBzL2JvYXJkLw%3D%3D"]IP.Board[/url]>/ips_kernel/classDbMysqliClient.php
editieren. Dort suchen nach
         if( $this->obj['sql_port'] )

         {

            $this->connection_id = @mysqli_connect( $this->obj['sql_host'] ,

                                                      $this->obj['sql_user'] ,

                                                      $this->obj['sql_pass'],

                                                      $this->obj['sql_database'],

                                                      $this->obj['sql_port'] 

                                                    );

        }

        else

        {

            $this->connection_id = @mysqli_connect( $this->obj['sql_host'] ,

                                                      $this->obj['sql_user'] ,

                                                      $this->obj['sql_pass'],

                                                      $this->obj['sql_database']

                                                    );

        }


 
und mit diesem ersetzen
         if( $this->obj['sql_port'] )

         {

            $this->connection_id = @mysqli_connect( $this->obj['sql_host'] ,

                                                      $this->obj['sql_user'] ,

                                                      $this->obj['sql_pass'],

                                                      $this->obj['sql_database'],

                                                      $this->obj['sql_port'],

                                                      '/tmp/mysql5.sock'

                                                    );

        }

        else

        {

            $this->connection_id = @mysqli_connect( $this->obj['sql_host'] ,

                                                      $this->obj['sql_user'] ,

                                                      $this->obj['sql_pass'],

                                                      $this->obj['sql_database']

                                                    );

     }

  dann die Änderungen speichern und beim Installer als hostname: 
localhost:3306

angeben und es geht ;)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×