SQL query error

Query: SELECT version_code FROM eqdkp_versions ORDER BY version_id
Message: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Code: 2002