Skip to content
MySQL backend for Django based on the PyMySQL database adapter
Find file
Failed to load latest commit information.
src/mysql_pymysql Initial source import Dec 13, 2011
LICENSE Initial source import Dec 14, 2011 Compatibility notes Dec 14, 2011 Add PyPI Metadata to Nov 29, 2012


This is a Django database backend for MySQL, using the PyMySQL database adapter. It is intended to be a drop-in replacement for the built-in MySQLdb backend, and leverages quite a bit of its code.

It is currently experimental, and has only been tested against Django trunk (1.4-pre-alpha), and Vinay Sajip's Py3k branch on BitBucket ( At the moment, it won't work with Django 1.3, as it uses Aymeric Augustin's timezone-aware datetime patch.



  1. Clone and install into your site-packages directory:

    $ git clone
    $ cd django-mysql-pymysql
    $ python install
  2. Edit your settings file:

        'default': {
            'ENGINE': 'mysql_pymysql',
            'HOST': ...,
            'USER': ...,
            'PASSWORD': ...,
  3. You're done.

Something went wrong with that request. Please try again.