An error was encountered

Error: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11).