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?
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?