I have this problem with phpmyadmin, it was working normally, but when I typed: "mysql" in the linux shell it did not open mysql, just when it was typed: mysql -h 127.0.0.1 -P-3306 -u root. / p>
Then I saw some articles and modified or deleted something from it giving this error:
#2002 - Arquivo ou diretório não encontrado —
The server is not responding (or the local server's socket is not correctly configured).
mysqli_real_connect(): (HY000/2002): Arquivo ou diretório não encontrado
Connection for controluser as defined in your configuration failed.