0

I have Anaconda, MySQL workbench and mysql-connector-python-8.0.18-macos10.14.dmg installed.

Keep getting the error:

InterfaceError: 2026 (HY000): SSL connection error: SSL_CTX_set_tmp_dh failed

I am using:

import mysql.connector

cnx = mysql.connector.connect(user='root', password='xxxxxxx',
                              host='localhost')
try:
   cursor = cnx.cursor()
   cursor.execute("""
      select 3 from your_table
   """)
   result = cursor.fetchall()
   print (result)
finally:
    cnx.close() 
5

0

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.