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

mysql_get_server_version() returns 0 if version_string is set to empty in maxscale.cnf file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Labels:
      None

      Description

      We found an issue while connecting through maxscale using SQLyog. SQLyog/MONyog supports only > 4.0 servers. To check this we are executing mysql_get_server_version() and checking the version is > 4.0 or not. But in maxscale, when version_string is set to empty in maxscale.cnf file, mysql_get_server_version() returns "0" and SQLyog returns an error.

      I am not sure whether the issue is related MariaDB C connector or maxscale.

      According to the documentation, version_string parameter sets a custom version string that is sent in the MySQL Handshake from MariaDB MaxScale to clients.
      Example:
      version_string=5.5.37-MariaDB-RWsplit

      If not set, the default value is the server version of the embedded MySQL/MariaDB library. Example: 5.5.35-MariaDB

      MaxScale version: 2.2.3

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              georg Georg Richter
              Reporter:
              sandhyasriraj Sandhya Sriraj
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: