Opened 6 years ago

Closed 6 years ago

#19054 closed Uncategorized (worksforme)

Django backend for mysql is not installed

Reported by: sholland@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: MySQL
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The Django documentation says that several backends are available with the Django distribution, including MySQL. However, when I specifying mysql as the backend Django dies during startup with the error that the backend is not available. On the web, multiple sites describe how to download MySQLdb and install. This backend should be in Django, or the documentation should instruct how to install it.

Change History (1)

comment:1 Changed 6 years ago by Tomek Paczkowski

Resolution: worksforme
Status: newclosed

There are two things here: mysql backend and mysql driver. Driver is a library exposing mysql connection to Python program, backend is an adapter that lets Django use this driver to connect to DB. Mysql backend is indeed included with Django, while mysql driver is not.
There is quite nice docs on preparing DB:

I've checked both mysql and postgresql backends and they behave well by displaying proper message that module mysqldb/psycopg2 is missing.

I'm closing this ticket as worksforme.

Note: See TracTickets for help on using tickets.
Back to Top