Opened 6 years ago
Closed 6 years ago
#30682 closed Bug (duplicate)
Bug with Mysql connection (since 2.2a1).
Reported by: | Maxim Isaev | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | mysql, macOS, connection |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Description (last modified by ) ¶
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.
Change History (4)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|
comment:3 by , 6 years ago
Summary: | Bug with Mysql connection → Bug with Mysql connection (since 2.2a1) |
---|
comment:4 by , 6 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | Bug with Mysql connection (since 2.2a1) → Bug with Mysql connection (since 2.2a1). |
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.