Page 1 of 1

Unable to log into socket: mysql.socket

Posted: 2007-08-19 15:02
by synex
Hallo,

ich sehe wieder Wald vor lauter Bäumen nicht.

Ich wollte mal das Script "tuning-primer.sh" benutzen um MySQL zu optimieren. Doch es kommt die Fehlermeldung wie im Threadtitel. Hier nochmal das ganze:

Code: Select all

# tuning-primer.sh

- INITIAL LOGIN ATTEMPT FAILED -

Testing Stored for passwords:- RETRY LOGIN ATTEMPT FAILED -

Could not auto detect login info!

Do you have your login handy ? [y/N] : y
User: root
Password:
Would you like me to create a ~/.my.cnf file for you? [y/N] : n
- FINAL LOGIN ATTEMPT FAILED -

Unable to log into socket: /var/run/mysqld/mysqld.sock
die rechte hatte ich testweise auf 777 gesetzt:

Code: Select all

# ls /var/run/mysqld/mysqld.sock
srwxrwxrwx 2 mysql mysql 0 2007-08-15 18:31 /var/run/mysqld/mysqld.sock
doch es will trotzdem nicht.

wenn ich mich richtig erinnern kann, wollte phpmyadmin auch nicht mit dem socket, weshalb ich es dort mit tcp mache.

könnt ihr mir da helfen?

Re: Unable to log into socket: mysql.socket

Posted: 2007-08-19 16:41
by Joe User

Code: Select all

/etc/init.d/mysql stop
pkill -u mysql
rm -f /var/run/mysqld/*
/etc/init.d/mysql start
./tuning-primer.sh

Re: Unable to log into socket: mysql.socket

Posted: 2007-08-19 17:40
by synex
leider bleibt das problem immer noch

Re: Unable to log into socket: mysql.socket

Posted: 2007-08-19 17:55
by oxygen
Was passiert denn wenn du mysql -uroot -ppasswort auf der konsole ausführst? was anderes tut das script ja auch nicht.

Re: Unable to log into socket: mysql.socket

Posted: 2007-08-19 17:57
by synex
das funktioniert ^^ aber davon hab ich ja noch nix ^^

das ganze verwundert mich ja ein wenig.. und ja es ist die richtige socket datei

Re: Unable to log into socket: mysql.socket

Posted: 2007-08-19 18:16
by synex
sry für doppelpost


also ich hab mir mal das script angeguckt und festgestellt, dass das script den befehl mysqladmin benutzt um zu checken ob es geht. aber irgendwie hatte ich vergessen ein link zu mysqladmin zu erstellen (hatte mysql mit prefix=/etc/mysql installiert)

ein

Code: Select all

ln -s /etc/mysql/bin/mysqladmin /usr/bin/mysqladmin
hat ausgereicht ^^ (naja das mysql binary wird auch benötigt - das hatte ich aber schon verlinkt)