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 p_category="consultores_tecnicos" AND p_outdate > 1656242489 in method query(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[+] Invalid "Resource id #" specified in method fetchNumRows(). - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).