Disable SSL using QSqlDatabase with MySQL
-
wrote on 4 Jan 2021, 10:40 last edited by halfgaar 1 Apr 2021, 11:04
QSqlDatabase allows various MySQL options to be set with setConnectOptions(). It's a cherry-picked list, instead of allowing all mysql options.
Libmysqlclient defaults to SSL mode. How do I disable SSL? Trying to set
MYSQL_OPT_SSL_MODE
yieldsUnknown connect option 'MYSQL_OPT_SSL_MODE'
.I tried setting all SSL options to empty,
/dev/null
, etc, but that just breaks SSL.So, how do I disable SSL?
-
@halfgaar said in Disable SSL using QSqlDatabase with MySQL:
So, how do I disable SSL?
By fixing the plugin. I would guess the options are only some basic options available from the early mysql 4.x days.
1/2