1

_mysql_exceptions.OperationalError: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed')

is thrown at me when I try to run my script which connects to my SQL server. I installed MySQLdb via conda. I've read that this may be an openssl issue, but I'm having trouble downgrading that as well.

2 Answers 2

0

based on This answer.

I got the answer:'https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization.html'

'shell> bin/mysql_ssl_rsa_setup'

If you want to deploy the server with automatic support for secure connections, use the mysql_ssl_rsa_setup utility to create default SSL and RSA files

More information here

Sign up to request clarification or add additional context in comments.

Comments

0

I was able to fix this my using mysql.connector instead of importing MySQLdb in my python scripts

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.