When I try to log into mysql with the command
mysql -u root -p , i enter the password then it gives me the error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/sbin/mysqld/mysqld.sock' (20)
I really don't know why it's trying to use '/usr/sbin/mysqld/mysqld.sock' because in the /etc/mysql/my.cnf i have it set to '/usr/sbin/mysqld/mysqld.sock' because that's where i got told it was when i ran
whereis mysqld.sock .
Something you might want to know is that when I cd to /usr/sbin/mysqld I get a directory now found error even though it shows up when i type ls, i tried to see if it's a file by trying to open it in vim but that gave the file not found error aswell.
I am running Ubuntu Server 10.04.1.
Edited by tomtetlaw: n/a