MySQL Forums
Forum List  »  Connector/Python

MySQLInterfaceError: SSL is required but the server doesn't support it
Posted by: Nisarg Shah
Date: November 15, 2016 05:05AM

I am using MySQL Python/Connector 2.1.4 (with C extension) on an Ubuntu 16.04 64-bit system with Python 3.5.2 / 2.7.12. I have the following code -

import _mysql_connector
conn = _mysql_connector.MySQL()
conn.connect(user='root', password='root', database='db1')
conn.close()

On running it as

python3 file.py

I get the following error -

Traceback (most recent call last):
File "file.py", line 4, in <module>
conn.connect(user='root', password='root', database='db1')
_mysql_connector.MySQLInterfaceError: SSL connection error: SSL is required but the server doesn't support it

This error appears in both versions of Python. I do not want to use SSL as of now. How do I disable it?

Options: ReplyQuote


Subject
Written By
Posted
MySQLInterfaceError: SSL is required but the server doesn't support it
November 15, 2016 05:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.