Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe auf zwei Rechnern SuSE 8.0 mit einer MySQL DB installiert.

Auf dem einem Rechner keine Probleme. Aber auf dem anderen habe ich folgendes Problem.

Irgendwie kann ich über den Browser keine Verbindung zur DB herstellen.

Wenn ich das mit phpMyAdmin probiere kommt folgende Fehlermeldung:

#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Wenn ich in phpMyAdmin anstatt localhost 127.0.0.1 einstelle, geht es.

Was läuft da falsch?

Frank Palvölgyi

Hi!

Ich denke du musst da den MySQL - Server (Dämon) erst starten!

Gruß

Azrael

<ORAKEL>

Der User des Mysql-Prozesses hat keine Schreibrechte auf /tmp/mysql.sock

</ORAKEL>

Servus!

Kannst du dich mit nem anderen Tool (z.B. MySQL Front End) mit MySQL verbinden??

Also nicht lokal?

Gruß

Azrael

Ich vermute mal, das du eine php-seite aufgeruden hat und nun mal in der php.ini nachschauen möchtest, ob der pfad zu mysql.sock richtig ist

  • Autor

Nein.

Mein Problem ist folgendes:

Wenn ich in PHP bei einer MySQL Verbindung bei $datenbankhost


$verbindung = mysql_pconnect($datenbankhost, $user_id_select, $passwort_id_select);
[/php]

localhost angebe, gibt es nur Fehlermeldungen. Wenn ich aber bei $datenbankhost 127.0.0.1 angebe, funktioniert alles wunderbar.

Frank

Tach,

steht in der hosts Datei "127.0.0.1 localhost"?

Gruß Jaraz

Welche Fehlermeldung kommt denn?

access denied?

Dann hast du in den Mysql Rechtetabellen den User nur mit der ip und nicht mit localhost drin stehen.

Gruß Jaraz

  • Autor

Als Fehlermeldung kommt in phpMyAadmin:

#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

In den Rechtetabellen steht überall localhost.

Das ist ja das komische. Das ist nicht mein erster SuSE Server mit MySQL. Das hatte ich noch nie.

Frank

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.