title: Cloud SQL Access denied
body: <pre><code>import webapp2
  import MySQLdb
  import os
  
  class MainPage(webapp2.RequestHandler):
  def get(self):
      if (os.getenv('SERVER_SOFTWARE') and
          os.getenv('SERVER_SOFTWARE').startswith('Google App Engine/')):
          db = MySQLdb.connect(unix_socket='/cloudsql/fluent-outlet-604:test-db' , db='guestbook', user='root',passwd='root')
          # connect to the cloud SQL
      else:
          db = MySQLdb.connect(host='173.194.248.221', port=3306, db='guestbook', user='root',passwd='root')
  
      cursor = db.cursor()
      cursor.execute('SELECT guestName, content, entryID FROM entries')
  
      data = cursor.fetchall()
      db.close()
      self.response.write(data)
  
      application = webapp2.WSGIApplication([
           ('/',MainPage),
      ],debug=True)
  </code></pre>
  
  <p>when i deploy this app to the app engine i gain error says
  "(1045, "Access denied for user 'root'@'localhost' (using password: YES)")</p>