Lore System Error

Unable to connect to the MySQL database at localhost. Please ensure that a MySQL database server is running, and check your login credentials in the configuration file.

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)