When you login PhpMyAdmin, you may see a red line.
And you try in the terminal the command “mysql –user=mysql –pass=mysql”, it gives you the following error :
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
It you have these errors, you have encounter the same problem as me.
Restart the mysql service with terminal
sudo /etc/init.d/mysql restart