[英]django.db.utils.OperationalError: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed')
I'm new to python and django.我是 python 和 django 的新手。 When I run
python manage.py runserver
I get this error:当我运行
python manage.py runserver
此错误:
django.db.utils.OperationalError: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed')'
mysql Server version: 8.0.13 MySQL Community Server - GPL.
I can't find this error on the web.我在网上找不到这个错误。
I ran into the same error when I tried to connect to MySQL to Python (in Anaconda).当我尝试将 MySQL 连接到 Python(在 Anaconda 中)时遇到了同样的错误。
This feed is particularly helpful for various case scenarios leading to the same error. 此提要对于导致相同错误的各种案例场景特别有用。 For me, installing openSSL version 1.0.2r in Anaconda, itself, fixed the issue:
对我来说,在 Anaconda 中安装 openSSL 版本 1.0.2r 本身就解决了这个问题:
$ conda install openssl=1.0.2r
从 Anaconda 安装时我也遇到了这个问题,但我可以使用“use_pure=True”mysql.connector.connect() 参数来解决它。
I got the answer:' https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization.html '我得到了答案:' https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization.html '
'shell> bin/mysql_ssl_rsa_setup' 'shell> bin/mysql_ssl_rsa_setup'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.