Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/asrux/main-site/rails/public/config/database_functions.php on line 6

Fatal error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/asrux/main-site/rails/public/config/database_functions.php on line 6