Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/elections/admin/actions/linkdatabase.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/elections/admin/actions/linkdatabase.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /var/www/html/elections/admin/actions/linkdatabase.php on line 3
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)