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()