Can't connect to ... through socket
<< Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) >> is error message I have got when with my browser I try to access to phpmyadmin to manage my db mysql.
Problem started when, cause error, /var/lib/mysql/mysql folder was deleted.
Without that folder, mysqld works correctly, scripts connect correctly to db, they query it, and so on, but phpmyadmin doesn't work (I cannot browser inside databases).
I tried to copy that folder from another mysql installation (same version), but now mysqld doesn't start anymore and phpmyadmin homepage shows me that error message.
Machine has got Red Hat 8.2.
Thanks a lot.