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

SELECT oa_form_code FROM detb1_optinapp_links WHERE oa_id='1'