Error! mysql_pconnect('-', '-', '-')
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

MySQL Query Error: SELECT 'x' FROM b_agent WHERE ACTIVE='Y' AND NEXT_EXEC<=now() AND (DATE_CHECK IS NULL OR DATE_CHECK<=now()) LIMIT 1[Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]