Мы не можем отключить --require_secure_transport=ON, поскольку клиент хочет безопасности. Мы попробовали параметр ssl_disabled = True из документации соединителя MySQL.
Код: Выделить всё
try:
self.conn = mysql.connector.connect(host=host,user=user,password=key, database='xxxx', port=3306, ssl_disabled=True)
self.info = self.conn.get_server_info()
#print(self.info)
self.cursor = self.conn.cursor(dictionary=True)
return self
except Error as e:
logger.error(str(e))
Подробнее здесь: https://stackoverflow.com/questions/721 ... ecure-tran
Мобильная версия