An Error Occured: Python Exception Occurred

(, OperationalError(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"), )
Traceback (most recent call last):
  File "/var/www/superduper/index.py", line 194, in <module>
    superlib.dbconnect()
  File "../lib/superlib.py", line 148, in dbconnect
    db = MySQLdb.connect(passwd=config.db_pass, db=config.db_name, user=config.db_user)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")