Solved issue Can't connect to local MySQL server through socket

Mysql couldn’t find the Mysql Server or Manager

In a beautiful day, all your websites couldn’t connect to database, although you didn’t make any changes. You get the error “Error connecting to MySQL: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)” …