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

guten tag zusammen

wenn ich mysql starten will mit dem befehl mysql -u root -p kommt der fehler

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

weiß jemand was ich machen muss damit es geht, hoffe ihr könnt mir weiterhelfen

mfg Goji

ps. nutze linux mandriva

also das ganze läuft auf meinem home rechner

ob das jetzt über socket oder TCP/IP connection läuft, ist mir nicht so wichtig, ich wäre schon froh wenn das überhaupt mal läuft :D

übrigends es ist die MySQL 5.1.30 version,

mfg Goji

Läuft der Dienst auch auf dem Host?

Willst Du ggf per TCP/IP Connection und nicht via Socket?

Bitte beantworte meine Fragen. Es wäre durchaus hilfreich, wenn Du ggf die Distribution nennst - ich kann hier raten, dass es ein Linux ist - auf der Du arbeitest. Logdateien und Konfigurationsdateien sind durchaus hilfreiche Dinge

Vielleicht liest Du das hier einmal: Wie man Fragen richtig stellt: eine Anleitung wie man Fragen erfolgreich in Usenet, Mailing Listen und Webforen stellt.

Phil

also ich nutze linux mandriva 2009, und das läuft bei mir zuhause auf dem rechner

hab auch schon im internet gesucht um das problem zu lösen, leider ohne erfolg.

wenn du mit dem dienst jetzt mysqld meinst, ja dann hab ich versucht denn dienst zum laufen zu bringen. aber das hat nicht funktioniert.

die meldung kommt dann wenn ich mysqld starten will

[tomsel911@localhost sbin]$ ./mysqld

090410 11:27:20 [Warning] Can't create test file /opt/lampp/var/mysql/localhost.lower-test

090410 11:27:20 [Warning] Can't create test file /opt/lampp/var/mysql/localhost.lower-test

./mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)

090410 11:27:20 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

090410 11:27:20  InnoDB: Operating system error number 13 in a file operation.

InnoDB: The error means mysqld does not have the access rights to

InnoDB: the directory.

InnoDB: File name /opt/lampp/var/mysql/ibdata1

InnoDB: File operation call: 'open'.

InnoDB: Cannot continue operation.
ich hab dann versucht mysql_upgrade zu starten, aber dann kam diese meldung
[tomsel911@localhost bin]$ ./mysql_upgrade

Looking for 'mysql' as: ./mysql

Looking for 'mysqlcheck' as: ./mysqlcheck

./mysql_upgrade: Can't create/write to file 'sql66PmkM' (Errcode: 13)

FATAL ERROR: Failed to create temporary file for defaults

[tomsel911@localhost bin]$

ps. hab das ganze mit dem normalen user gemacht

mfg Goji

wenn ich versuche mysqld als root zu starten kommt die meldung

[root@localhost sbin]# ./mysqld

090410 14:14:28 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!


090410 14:14:28 [ERROR] Aborting


090410 14:14:28 [Note] ./mysqld: Shutdown complete


[root@localhost sbin]#

mal schaun vlt finde ich ja etwas im manual, wie ich es als root zum laufen bringe

aber ihr dürft mir gerne auf die sprünge helfen :D

mfg Goji

so habe es jetzt geschafft mysql zum laufen zu bringen

vielen dank für eure schnellen antworten

mfg Goji

hab die rechte für denn normalen user im verzeichniss /opt/lampp geändert (chown -R user_name /opt/lampp) und ab hier ging auch der mysql dienst. hab dann noch in my.cnf den pfad für socket geändert

(socket = /opt/lampp/var/mysql/mysql.sock)

und dann hab ich mysql direkt gestartet (./mysql -u root -p im verzeichniss /opt/lampp/bin)

und jetzt funktioniert alles prima :D

mfg Goji

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.