Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.
Stay organized with collections Save and categorize content based on your preferences.

google.appengine.api.rdbms_mysqldb module

Summary

Relational database API stub that uses the MySQLdb DB-API library.

Also see the rdbms module.

Contents

google.appengine.api.rdbms_mysqldb.FindUnixSocket()source

Find the Unix socket for MySQL by scanning some known locations.

Returns

If found, the path to the Unix socket, otherwise, None.

google.appengine.api.rdbms_mysqldb.SetConnectKwargs(**kwargs)source

Sets the keyword args (host, user, etc) to pass to MySQLdb.connect().

google.appengine.api.rdbms_mysqldb.connect(instance=None, database=None)source
google.appengine.api.rdbms_mysqldb.set_instance(instance)source