Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-613

mysql_real_query_start sends not encrypted requests to server

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.3.2, 3.1.18
    • None
    • Non blocking API, TLS/SSL
    • None
    • Windows (Windows 10 Pro, version - 21H2, build number - 19044.1889, arch - X86_64)

    Description

      Hello!

      I use libmariadb on Windows machine.

      When I run mysql_real_query_start() after creating connection with ssl mode to mysq server (8.0.30) or mariadb server (10.9.2) it fails with error code 2013 and error msg "Lost connection to MySQL server during query".

      If I run the same code on Centos7 it works fine.

      The problem is in mysql_real_query_start(). It sends not encrypted request to server and therefore server closes the connection. As the result we get error msg "Lost connection to MySQL server during query".

      How to repeat:
      1) Download libmariadb any version from 3.3.2, 3.2.7, 3.1.18 and build on Windonws 10 Pro;
      2) Download mysql server (8.0.30) or mariadb server (10.9.2), install on the same machine where libmariadb was built and run;
      3) Create c++ test project from the attached file;
      4) Build project and execute the program;

      Attachments

        Activity

          People

            georg Georg Richter
            geekwhitewhite0055 Alex
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.