Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-808

Unable to connect to server with version 2.6.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2
    • Component/s: configuration
    • Labels:
    • Environment:
      java 11, spring boot, mariadb 10.3

      Description

      Upgrading to latest version of the connector makes my app unable to connect to the database with the following error:

      java.sql.SQLSyntaxErrorException: Could not connect to address=(host=localhost)(port=3306)(type=master) : (conn=409) Variable 'character_set_client' can't be set to the value of 'utf32'

      at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:62) ~[mariadb-java-client-2.6.1.jar!/:na]

      I tried to change the connection url (adding CharSet=utf8) and also configuring default client and server charset on mariadb (running on debian buster), but without luck.

      Since I was unable to find a way to fix this problem I had to revert to the old version (2.6.0 is fine)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              diego dupin Diego Dupin
              Reporter:
              Polve Alex
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: