Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/vhosts/alphaworks.co.uk/cms/prod/inc/db.inc on line 7

Fatal error: Could not connect to "localhost" with user "cms": Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/vhosts/alphaworks.co.uk/cms/prod/inc/db.inc on line 8