MySQL

MySQL is supported with full read/write capabilities and some adapter-specific configuration options.

Connection Settings

Field Required Description
Host ✅ Server hostname or IP address
Port — Connection port (defaults to 3306)
Database ✅ Database name
Encoding ✅ utf8
Secure Auth — Enable secure authentication (boolean)
SSL Mode — disabled or required

Credentials

Each access level requires:

Field Required
Username ✅
Password ✅

Adapter Features

Feature Supported
Schemas ❌ (single database per connection)
Upsert (INSERT ... ON DUPLICATE KEY) ✅
Truncate ✅
Drop Columns ✅
Flex Schema ❌
Foreign Keys ✅ (add, remove, ON DELETE, ON UPDATE)
Primary Keys ✅ (add, remove)
Auto-increment columns ✅
Column rename ✅
Column type change ✅
Table rename ✅

No Schema Support

MySQL connections map to a single database. There is no schema-level separation like in PostgreSQL or BigQuery. All tables reside directly in the connected database.

Upsert Behavior

MySQL uses INSERT ... ON DUPLICATE KEY UPDATE. If you enable the upsert write strategy, the conflict target must be the primary key of the table — custom unique constraints are not supported for upsert resolution.

MySQL's upsert can return conflicting rows, which means hibase can track and report which rows triggered a conflict during the import.

SSL and Authentication

  • Secure Auth: Enable this for MySQL servers that require secure authentication handshakes (MySQL 5.7+)
  • SSL Mode: Set to required when connecting to servers that mandate encrypted connections (e.g., cloud-hosted databases)