IBM Support

JDBC_104 - MySQL Database Name and Schema Mismatch

Troubleshooting


Problem

  1. If a Schema name is provided in a JDBC stage which is using a MySQL database, the Schema name must match the Database name provided in the JDBC connection string.

    1. The Schema field can be left blank. It is not a required field for MySQL databases.

    2. The reason the Schema name (if provided) must match the Database name is that Database and Schema are two names for the same object in MySQL.

Symptom

  1. A JDBC pipeline connecting to a MySQL datbase fails validation.

  2. Selecting the Validation Error in the SDC UI displays the following message:

    1. JDBC_104 - Schema must be empty or exactly the same as database name for MYSQL databases.

Resolving The Problem

There are two options to resolve this error:

  1. Recommended: Leave the Schema field blank.

    1. Example:

      JDBC Connection String: jdbc:mysql://mysqldb.example.com:3306/testdb

      Schema:

  2. Alternative: configure the Schema to match the Database name in the JDBC Connection String:

    1. Example:

      JDBC Connection String: jdbc:mysql://mysqldb.example.com:3306/testdb

      Schema: testdb

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM7CU","label":"IBM StreamSets Data Collector"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
15 March 2025

UID

ibm17186196