DB Error:

Error(s) found: 4

[+] Unable to connect to the database in method makeConnection(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[+] Unable to select database in method makeConnection(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[+] Unable to perform the query: SELECT * FROM posts WHERE id=6477 in method query(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[+] Invalid "Resource id #" specified in method fetchRow(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).