[Django] #33612: Clone db failed in MySQL8

3 views
Skip to first unread message

Django

unread,
Mar 31, 2022, 5:20:32 AM3/31/22
to django-...@googlegroups.com
#33612: Clone db failed in MySQL8
-------------------------------------+-------------------------------------
Reporter: Mohammad | Owner: nobody
Ali Mehdizadeh |
Type: | Status: new
Uncategorized |
Component: Database | Version: 4.0
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In MySQL8, It seems mysqldump value of column-statistics is enabled by
default but MySQL documentation said another thing.
Anyway, when I add `--column-statistics=0` to `__clone_db`, I can run
tests and cloning database works well.
Database version:`10.7.3-MariaDB-1:10.7.3+maria~focal`
`(djangoproject) ~/m/d/django ❯❯❯ pip list
✘ 1
Package Version Editable project location
-------------------- ---------------------
-------------------------------------
aiohttp 3.8.1
aiosignal 1.2.0
aiosmtpd 1.4.2
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
asgiref 3.5.0
async-generator 1.10
async-timeout 4.0.2
atpublic 3.0.1
attrs 21.4.0
backports.zoneinfo 0.2.1
bcrypt 3.2.0
black 22.3.0
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.12
click 8.1.0
cryptography 36.0.2
Deprecated 1.2.13
Django 4.1.dev20220315120744 /local/path/
docutils 0.18.1
frozenlist 1.3.0
geoip2 4.5.0
h11 0.13.0
idna 3.3
Jinja2 3.1.1
MarkupSafe 2.1.1
maxminddb 2.2.0
multidict 6.0.2
mypy-extensions 0.4.3
mysqlclient 2.1.0
numpy 1.22.3
outcome 1.1.0
packaging 21.3
pathspec 0.9.0
Pillow 9.0.1
pip 22.0.4
platformdirs 2.5.1
psycopg2 2.9.3
pycparser 2.21
pylibmc 1.6.1
pymemcache 3.5.1
pyOpenSSL 22.0.0
pyparsing 3.0.7
PySocks 1.7.1
pytz 2022.1
pywatchman 1.4.1
PyYAML 6.0
redis 4.2.0
requests 2.27.1
selenium 4.1.3
setuptools 61.0.0
six 1.16.0
sniffio 1.2.0
sortedcontainers 2.4.0
sqlparse 0.4.2
tblib 1.7.0
tomli 2.0.1
trio 0.20.0
trio-websocket 0.9.2
typing_extensions 4.1.1
tzdata 2022.1
urllib3 1.26.9
wheel 0.37.1
wrapt 1.14.0
wsproto 1.1.0
yarl 1.7.2`

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

Reply all
Reply to author
Forward
0 new messages