Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /home/users/schoolportal/www/index.php on line 8

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/users/schoolportal/www/index.php on line 9

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/users/schoolportal/www/index.php on line 61
8. Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)