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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • None
    • N/A
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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