MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
2002 - Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
Query:
[READ] Unable to connect to MySQL server