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

When executing:

INSERT INTO impressions (impression_type_id, impression_date, name, primary_key, primary_value, cnt ) VALUES (, '2014-08-02', '', '', , )