Issue with Migrating MariaDB Linked Service to Latest Driver in PROD

Loc Nguyen Phuoc Vinh 20 Reputation points
2024-10-21T06:12:45.79+00:00

Migrating a MariaDB linked service to use the latest driver as recommended in the documentation: Upgrade the MariaDB Driver Version works fine in lower environments like DEV or UAT, but fails in PROD.

In PROD, the legacy driver still functions correctly. A new linked service was created using the same information as the legacy one (same server, DB name, username, password from Key Vault, and Integration Runtime), but the version with the latest driver fails.

The MariaDB version is verified to be the same across all environments: 10.6.16-MariaDB-log.

The Self-hosted IR version is also the same across all environments: 5.44.8996.4 (Data Factory V2).

Here is the error message received when testing the connection:

User's image

Has anyone encountered this issue before and can provide guidance on how to resolve it?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Answer accepted by question author
  1. Smaran Thoomu 32,360 Reputation points Microsoft External Staff Moderator
    2024-12-05T04:44:01.5466667+00:00

    Hi @Loc Nguyen Phuoc Vinh
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others "I'll repost your solution in case you'd like to accept the answer.
    Issue: Migrating a MariaDB linked service to use the latest driver as recommended in the documentation: Upgrade the MariaDB Driver Version works fine in lower environments like DEV or UAT, but fails in PROD.

    In PROD, the legacy driver still functions correctly. A new linked service was created using the same information as the legacy one (same server, DB name, username, password from Key Vault, and Integration Runtime), but the version with the latest driver fails.

    The MariaDB version is verified to be the same across all environments: 10.6.16-MariaDB-log.

    The Self-hosted IR version is also the same across all environments: 5.44.8996.4 (Data Factory V2).

    Here is the error message received when testing the connection:

    User's image

    Has anyone encountered this issue before and can provide guidance on how to resolve it?

    Solution: we changed password to something doesn't contain semicolon and we're now able to connect.

    this is a confirmed bug from ADF's mariadb driver.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,561 Reputation points Microsoft Employee Moderator
    2024-10-21T09:09:44.5466667+00:00

    Hi Loc Nguyen Phuoc Vinh ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    It sounds like you are trying to upgrade the MariaDB driver version for a linked service in Azure Data Factory, but you are encountering an error when testing the connection in the PROD environment. The error message that you are receiving indicates that the connection string is not in the correct format.

    Kindly try to switch to 'Password' mode and directly put the password and try testing the linked service if it works fine or not.

    If it works fine, kindly create another Secret with the same password in the Key vault and use that one as there could be some unwanted space or character stored in the password of keyvault and the error message could be misleading sometimes.

    Similar issue has been faced by customer in the past for PostGreSQL and have been fixed by removing the unwanted character.

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou


  2. Loc Nguyen Phuoc Vinh 20 Reputation points
    2024-11-29T03:53:49.7633333+00:00

    we changed password to something doesn't contain semicolon and we're now able to connect.

    this is a confirmed bug from ADF's mariadb driver.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.