--> --> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.6: /opt/bitnami/python/bin/python
Sat Nov 17 11:59:14 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /opt/bitnami/apache2/cgi-bin/report_by_name.py in ()
    323         config = mq.read_config()
    324         remote_conn, remote_cursor = mq.mysql_connect(config['remote_cnf'])
=>  325         local_conn, local_cursor = mq.mysql_connect(config['local_cnf'])
    326         log = open('/home/bitnami/MetaQuery/htdocs/plot/log.txt', 'w')
    327         
local_conn undefined, local_cursor undefined, mq = <module 'metaquery' from '/home/bitnami/MetaQuery/cgi-bin/metaquery.pyc'>, mq.mysql_connect = <function mysql_connect>, config = {'local_cnf': '/home/bitnami/MetaQuery/config/local.my.cnf', 'max_chars': '250', 'max_days': '120', 'max_length': '200000', 'max_queued': '20', 'max_seqs': '100', 'remote_cnf': '/home/bitnami/MetaQuery/config/remote.my.cnf'}
 /home/bitnami/MetaQuery/cgi-bin/metaquery.py in mysql_connect(cnf='/home/bitnami/MetaQuery/config/local.my.cnf')
      6 
      7 def mysql_connect(cnf):
=>    8         conn = MySQLdb.connect(read_default_file=cnf)
      9         cursor = conn.cursor()
     10         return conn, cursor
conn undefined, global MySQLdb = <module 'MySQLdb' from '/opt/bitnami/python/lib/....3c1-py2.7-linux-x86_64.egg/MySQLdb/__init__.py'>, MySQLdb.connect = <function Connect>, read_default_file undefined, cnf = '/home/bitnami/MetaQuery/config/local.my.cnf'
 /opt/bitnami/python/lib/python2.7/site-packages/MySQL_python-1.2.3c1-py2.7-linux-x86_64.egg/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'read_default_file': '/home/bitnami/MetaQuery/config/local.my.cnf'})
     79     """Factory function for connections.Connection."""
     80     from connections import Connection
=>   81     return Connection(*args, **kwargs)
     82 
     83 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'read_default_file': '/home/bitnami/MetaQuery/config/local.my.cnf'}
 /opt/bitnami/python/lib/python2.7/site-packages/MySQL_python-1.2.3c1-py2.7-linux-x86_64.egg/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 2abb9f0>, *args=(), **kwargs={'read_default_file': '/home/bitnami/MetaQuery/config/local.my.cnf'})
    186         kwargs2['client_flag'] = client_flag
    187 
=>  188         super(Connection, self).__init__(*args, **kwargs2)
    189 
    190         self.encoders = dict([ (k, v) for k, v in conv.items()
builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 2abb9f0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 2abb9f0>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None>, ...}, 'read_default_file': '/home/bitnami/MetaQuery/config/local.my.cnf'}

<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock' (2)")
      args = (2002, "Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock' (2)")
      message = ''