title: python MySQLdb godaddy.com hosting
body: <pre><code>import MySQLdb
  conn = MySQLdb.connect('localhost', 'user', 'pwd', 'sampledb')
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/pymodules/python2.7/MySQLdb/__init__.py", line 81, in Connect
      return Connection(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/MySQLdb/connections.py", line 187, in __init__
      super(Connection, self).__init__(*args, **kwargs2)
  _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (110)")
  </code></pre>
  
  <p>How do I connect and what is the issue here? Thank you!</p>