Django 2.2, 3.1, and 3.2 all require a minimum version of mysqlclient
newer than 1.3.8, so a fix for this could be backported to all currently
supported versions of Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/32732>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: dev => 3.2
* easy: 0 => 1
* keywords: => mysql
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Thanks for this report.
> Django 2.2, 3.1, and 3.2 all require a minimum version of mysqlclient
newer than 1.3.8, so a fix for this could be backported to all currently
supported versions of Django.
Django 2.2 and 3.1 are in extended support so they don't receive bugfixes
anymore (except security patches). We'll document the maximum supported
version of `mysqlclient` in these versions as soon as deprecated kwargs
are removed.
IMO we can backport this to the Django 3.2 since it's LTS.
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:1>
* owner: nobody => Nick Pope
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14376 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:2>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:3>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1061f5243646b4c9b8a758f8a36c9e2ccdded1cf" 1061f52]:
{{{
#!CommitTicketReference repository=""
revision="1061f5243646b4c9b8a758f8a36c9e2ccdded1cf"
Fixed #32732 -- Removed usage of deprecated 'db' and 'passwd' connection
options in MySQL backend.
The 'db' and 'passwd' connection options have been deprecated, use
'database' and 'password' instead (available since mysqlclient >= 1.3.8).
This also allows the 'database' option in DATABASES['OPTIONS'] on MySQL.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"4318e60a8025371a6da550eecc798e32d3864f9d" 4318e60a]:
{{{
#!CommitTicketReference repository=""
revision="4318e60a8025371a6da550eecc798e32d3864f9d"
[3.2.x] Fixed #32732 -- Removed usage of deprecated 'db' and 'passwd'
connection options in MySQL backend.
The 'db' and 'passwd' connection options have been deprecated, use
'database' and 'password' instead (available since mysqlclient >= 1.3.8).
This also allows the 'database' option in DATABASES['OPTIONS'] on MySQL.
Backport of 1061f5243646b4c9b8a758f8a36c9e2ccdded1cf from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32732#comment:6>