Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django.db.utils.OperationalError: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed')

I'm new to python and django. When I run python manage.py runserver I get this error:

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.

like image 704
P.Cheng Avatar asked Dec 14 '22 13:12

P.Cheng


1 Answers

I had this issue too when installing from Anaconda, but I could work around it using the "use_pure=True" mysql.connector.connect() parameter.

like image 84
Hyperdrive Avatar answered Dec 17 '22 22:12

Hyperdrive