Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Disable SSL using QSqlDatabase with MySQL
Forum Updated to NodeBB v4.3 + New Features

Disable SSL using QSqlDatabase with MySQL

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 583 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    halfgaar
    wrote on 4 Jan 2021, 10:40 last edited by halfgaar 1 Apr 2021, 11:04
    #1

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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 4 Jan 2021, 17:28 last edited by
      #2

      @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.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0

      1/2

      4 Jan 2021, 10:40

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved