[Django] #30682: Bug with Mysql connection

2 views
Skip to first unread message

Django

unread,
Aug 5, 2019, 5:36:41 AM8/5/19
to django-...@googlegroups.com
#30682: Bug with Mysql connection
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
Supernova989 |
Type: Bug | Status: new
Component: | Version: master
Uncategorized | Keywords: mysql, macOS,
Severity: Normal | connection
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello! I’ve recently started one more project based on Django. The other
day I decided to change the DB from mySQLlite to MySQL and, to my
surprise, the configuration that I had used in my previous project (Django
2.1.7) was not working. I’ve spent a lot of time on figuring out what was
going wrong with it on my MacBook, and it turned out that it has not been
possible to use MySQL connection since Django 2.2a1. In order to connect,
I’ve always used PyMySQL, and it worked with:

{{{
import pymysql
pymysql.install_as_MySQLdb()
}}}

Now, with versions starting from 2.2a1 to 2.2.4, it throws an error and
says that I haven’t installed some packages whereas I have done it. Again,
this bug can be easily noticed just by installing a fresh Django project +
setting a Mysql DB connection on Mac + switching between versions.
It has nothing to do with PyMySQL as its version hasn't changed.

--
Ticket URL: <https://code.djangoproject.com/ticket/30682>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 5, 2019, 5:41:34 AM8/5/19
to django-...@googlegroups.com
#30682: Bug with Mysql connection
-------------------------------------+-------------------------------------
Reporter: Supernova989 | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: mysql, macOS, | Triage Stage:
connection | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Supernova989:

Old description:

> Hello! I’ve recently started one more project based on Django. The other
> day I decided to change the DB from mySQLlite to MySQL and, to my
> surprise, the configuration that I had used in my previous project
> (Django  2.1.7) was not working. I’ve spent a lot of time on figuring out
> what was going wrong with it on my MacBook, and it turned out that it has
> not been possible to use MySQL connection since Django 2.2a1. In order to
> connect, I’ve always used PyMySQL, and it worked with:
>
> {{{
> import pymysql
> pymysql.install_as_MySQLdb()
> }}}
>
> Now, with versions starting from 2.2a1 to 2.2.4, it throws an error and
> says that I haven’t installed some packages whereas I have done it.
> Again, this bug can be easily noticed just by installing a fresh Django
> project + setting a Mysql DB connection on Mac + switching between
> versions.
> It has nothing to do with PyMySQL as its version hasn't changed.

New description:

I’ve recently started one more project based on Django. The other day I
decided to change the DB from mySQLlite to MySQL and, to my surprise, the
configuration that I had used in my previous project (Django  2.1.7) was
not working. I’ve spent a lot of time on figuring out what was going wrong
with it on my MacBook, and it turned out that it has not been possible to
use MySQL connection since Django 2.2a1. In order to connect, I’ve always
used PyMySQL, and it worked with:

{{{
import pymysql
pymysql.install_as_MySQLdb()
}}}

Now, with versions starting from 2.2a1 to 2.2.4, it throws an error and
says that I haven’t installed some packages whereas I have done it. Again,
this bug can be easily noticed just by installing a fresh Django project +
setting a Mysql DB connection on Mac + switching between versions.
It has nothing to do with PyMySQL as its version hasn't changed.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/30682#comment:1>

Django

unread,
Aug 5, 2019, 5:42:20 AM8/5/19
to django-...@googlegroups.com
#30682: Bug with Mysql connection
-------------------------------------+-------------------------------------
Reporter: Supernova989 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) |

Severity: Normal | Resolution:
Keywords: mysql, macOS, | Triage Stage:
connection | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Supernova989):

* component: Uncategorized => Database layer (models, ORM)


--
Ticket URL: <https://code.djangoproject.com/ticket/30682#comment:2>

Django

unread,
Aug 5, 2019, 5:43:39 AM8/5/19
to django-...@googlegroups.com
#30682: Bug with Mysql connection (since 2.2a1)

-------------------------------------+-------------------------------------
Reporter: Supernova989 | Owner: nobody
Type: Bug | Status: new

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: mysql, macOS, | Triage Stage:
connection | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/30682#comment:3>

Django

unread,
Aug 5, 2019, 5:53:48 AM8/5/19
to django-...@googlegroups.com
#30682: Bug with Mysql connection (since 2.2a1).

-------------------------------------+-------------------------------------
Reporter: Supernova989 | Owner: nobody
Type: Bug | Status: closed

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: duplicate

Keywords: mysql, macOS, | Triage Stage:
connection | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => duplicate


Comment:

`PyMySQL` is not officially supported and it's probably a duplicate of
#30380. You can confirm this by applying patches
994a00eb70969e4fd8f7a30a95122e2f0411ff48 and
a41b09266dcdd01036d59d76fe926fe0386aaade to your local installation.

--
Ticket URL: <https://code.djangoproject.com/ticket/30682#comment:4>

Reply all
Reply to author
Forward
0 new messages