I am having problem accessing my database,
when I try to run mysql -h localhost -u root -p
and enter the password
I am recieving this kind of error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Wonder why I get this.
When I type mysql --version
I have no error and got this msg: mysql Ver 14.14 Distrib 5.5.22, for debian-linux-gnu (x86_64) using readline 6.2
But when I type this comman mysql -v I got an error that says:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/run/mysqld/mysqld.sock' (2)
I thought mysql --version and mysql -v are desame
Any help will be much appreciated.
Thank you