I have installed XAMPP installed in my linux machine and phpmyadmin is working fine. But when I tried to start mysql using console using mysql command, I am getting the following error.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
The same error is getting when I try to use cake php bake console
** since I have istalled XAMPP , there is no folder named mysql in /var/lib
Can you help me?