'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in debian6

5.9k views Asked by At

Well, recently I tried to install mysql_cluster on debian6. At first it works well, but when I try to install mysql_cluster multiply, an error occurs saying, that I cannot login as root anymore. I was trying to modify the pwd of root with the command:

/usr/local/mysql/bin/mysqladmin -u root password '654321'

But it turned out with wrong info as:

/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)'

I tried everything I can to solve this problem but failed. I was attemped to run the command:

find / -name *.sock -type s 

but I just cannot find the file mysqld.socks anywhere. As reference I had tried every method from this article.

All the methods failed, that I've tried so far.

0

There are 0 answers