title: Connect on remote MySQL database through Python
body: <p>I have tried the following script but unfortunately doesn't work. I am using a free MySQL database provider. Any ideas?</p>
  
  <pre><code>import MySQLdb
  
  myDB = MySQLdb.connect(host="208.11.220.249",port=3306,user="XXXXX",passwd="XXXXX",db="XXXXX")
  cHandler = myDB.cursor()
  cHandler.execute("SHOW DATABASES")
  results = cHandler.fetchall()
  for items in results:
      print items[0]
  </code></pre>
  
  <p>Currently, I am getting the following error:</p>
  
  <pre><code>super(Connection, self).__init__(*args, **kwargs2)
  _mysql_exceptions.OperationalError: (1044, "Access denied for user 'XXXXX'@'%' to database 'XXXXX'")
  </code></pre>